Say I have a listview control with several items in it. How would I allow the user to drag and drop items to rearrange them in the control.
The listview control is in report view, with the full-row select extended style.
Thanks in advance.
...
I am setting the font for a control like this:
HDC hdc = GetDC(NULL);
int lfHeight = -MulDiv(szFont, GetDeviceCaps(hdc, LOGPIXELSY), 72);
ReleaseDC(NULL, hdc);
HFONT font = CreateFont(lfHeight, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Font.c_str());
SendMessage(hwnd,WM_SETFONT,(WPARAM)font,0);
The control is a static. How would I find the ...
Hi
I'm trying to automate a hidden .NET application, with another .NET application (written in c#) using the easiest way possible. It's NOT for testing purposes, it's a way to fulfill the lack of scripting for this application.
I already tried white framework, but there is one major problems with it: the way it's working. It's slow and...
http://growl.info/documentation/developer/introduction.php:
Growl is a system for posting notifications to users.
...
I want to disable the shadow effect on a specific aero window. All I have is the HWND of this window, is this possible?
...
How can I reboot in c++? Is there any provision in WinSDK? What kind of rights should my program(process) have to do so?
...
hello
I have program that use JNI I use
Runtime.getRuntime().exec(file path and name);
for open an program and when is opened I try to set perant of this program on button listener.
I have 2 Native methods that 1
long fw("titlewindow") for get handle with title of window and an other
long setparent(fw(),handle of main progarm[I'm sur...
I have a certain library (IBM's WebSphere MQ) which I'm using, with an API that is suppose to return a remote servers character set.
After some debugging, it seems as though the return value of this function call returns the active code page of my machine. I saw this by looking at the return value of the function call and the result of...
Hello everyone, I am currently having an issue while using UpdateLayeredWindow.
The Issue:
It seems that when using skinned interfaces on Windows (Aero and such) UpdateLayeredWindow causes issues with specific controls. By this I mean, for example, if a simple edit box has a right-side scroll bar, it will turn black when a user hovers t...
I've been trying to reboot (WinXP) all evening, and Emacs (Win32, v23.something, not important) isn't starting... sometimes... it's locked on mount.exe (loads up some cygin things during launch), I finally notice. Can't kill mount.exe via ProcessExplorer, either. Killing Emacs kills emacs, and leaves the child process still hanging aroun...
Hello SO,
I have an ExplorerBrowser COM object embedded in a wxPython Panel. I am looking for a way to use a horizontal scroll bar for the ExplorerBrowser, rather than the default vertical scrollbar.
I can't seem to find an option in the ExplorerBrowser documentation, and not sure where else to look; I have very little knowledge of the...
Hi,
I want to replace Windows 7 Shell (32 and 64 bit) with my WPF application which should work as a Shell. The goal is WPF application will launch my Kiosk application and provide few services.
My questions are
How do I replace the Windows 7 Shell by my
WPF application ?
Do I have to do
something special in my WPF
application code ...
Hello,
My c# (winForm) app contain dataTree view with context Menu strip,
i want to add Menu strip Item at name : New Directory , that when it click i create a new directory on my treeview.
The problem is i want to create the dirctory like it done in windows , right-click -->new -> folder. (i want dir appear and i choose her name exactl...
I'm writing a simple kernel driver for my application (which is somehow an antimalware application).
I hooked ZwOpenFile() and got the process handle calling this API with PsGetCurrentProcess() which returns a PEPROCESS stucture:
PEPROCESS proc = PsGetCurrentProcess();
then I used ZwQueryInformationProcess to get the PID and ImageFil...
InterlockedIncrement and other Interlocked operations declare their arguments as volatile. Why? What is the intention and effect of this?
...
I've been battling trying to figure out how to visually create a table. It's a weird table that is sortable by column but only rows are selectable.
For people using uTorrent it looks something like this
I can't find this anywhere in Visual Studio! If it's not avialiable, how would I go about creating it myself?
...
What I want to do is check if my application has focus because if it is not then I will popup an Alert Window just over the Notification Area to display some message to the end user.
...
For some reason, calling SHGetFileInfo for an .lnk file returns icons with a link overlay, even when I don't request it:
Shell.SHGetFileInfo(path, 0, ref shFileInfo, (uint)Marshal.SizeOf(shFileInfo),
SHGFI.ICON | SHGFI.SMALLICON | SHGFI.TYPENAME | SHGFI.DISPLAYNAME);
I'm using shFileInfo.hIcon to get the icon handle (Windows 7, x64). ...
I have to write a litle app that will process files saved in a given dir. I doesn´t pleases me the idea of writing infinite loops, timers and that kind of stuff.
I´d like to know if there if (I would bet a finger that there is!) there is any windows API that would send my app a message for any file saved in that given dir.
...
How can you tell whether a WM_POWERBROADCAST message has interrupted a call stack? As opposed to happening in isolation with just the message handler call stack?
Here's the background:
What I see is that during hibernate / resume I get WM_POWERBROADCAST messages. These can seemingly interrupt a (blocked/waiting) callstack for e.g. a WM_...