Questions tagged [window-messages]
79 questions
11
votes
3 answers
What is the relationship of CloseWindow and WM_CLOSE
I'm a bit confused currently: Are WM_CLOSE and ::CloseWindow in any way "related" or are for completely different things?
The docs for Closing Windows don't mention the API function CloseWindow at all. Should CloseWindow be really called…

Martin Ba
- 37,187
- 33
- 183
- 337
10
votes
7 answers
Looking for an alternative to windows messages used in inter-process communication
I a have a multithread application (MIDAS) that makes uses of windows messages to communicate with itself.
MAIN FORM
The main form receives windows messages sent by the RDM
LogData(‘DataToLog’)
Because windows messages are used they have the…

Charles Faiga
- 11,665
- 25
- 102
- 139
7
votes
2 answers
Handling AeroSnap message in WndProc
In my C# .NET 4 application, I use WndProc to process some messages mostly dealing with resizing the application to and from full screen.
Right now I am just handling SC_MAXIMIZE and WM_NCLBUTTONDBLCLK to determine if the window is being resized to…

drew010
- 68,777
- 11
- 134
- 162
7
votes
1 answer
Newly created desktop doesn't receive keyboard events
I have created a small program which launches itself in a new desktop.
HDESK hDesktop = ::CreateDesktop(strDesktopName.c_str(),
NULL, // Reserved
NULL, // Reserved
…

igal k
- 1,883
- 2
- 28
- 57
6
votes
1 answer
WndProc message = 49619 -what is it?
I'm debugging a dragging bug in wpf and have subscribed to wndproc. I'm getting a message ID of 49619 with wparam=0 and lparam=0. I've exhausted my google efforts and have been unable to uncover what the name of this window message is.
If you…

Bill Tarbell
- 4,933
- 2
- 32
- 52
5
votes
1 answer
Are Window Messages "Reliable"?
This is somewhat of a general question regarding Windows programming:
Are Window messages "reliable"?
For example (these are just examples):
Can you be certain that a WM_MOUSEMOVE will happen before a cursor enters your screen?
Can you be certain…

user541686
- 205,094
- 128
- 528
- 886
5
votes
1 answer
Where to find definition of window message WM_UAHDRAWMENUITEM (0x92)
I'm writing a hook dll, which handles window drawing messages.
I found for Vista and above, some unknown message id are received by the hook dll, specifically 0x90 ~ 0x95.
I did some googling and found an msdn link and this, which told me what…

Guo
- 305
- 4
- 13
5
votes
2 answers
Delphi MDI - handling open/close/activate child form
I'm developing MDI application which assigns a tab for each created MDI child. I need to "catch" OnActivate, OnCreate and OnDestroy events of child form in the main (parent) form code. Simply calling the code in children form is impossible for me,…

migajek
- 8,524
- 15
- 77
- 116
4
votes
1 answer
Properly using AddClipboardFormatListener and subscribing to WM_CLIPBOARDUPDATE message
I am currently attempting to use the Windows clipboard and its notifications in my application. Specifically, I am attempting to subscribe to the WM_CLIPBOARDUPDATE window message by using the AddClipboardFormatListener() function. Previously, I had…

Thatchdawg
- 73
- 1
- 6
4
votes
2 answers
Keeping track of open child dialogs
In a C++ program (embarcadero XE2, vcl) I would like to send window-messages from parent to all child windows.
For this, I registered a windowMessage, send the message with PostMessage(handle,msg,wparam,lparam) in a loop for all handles and receive…

Julian
- 493
- 4
- 22
4
votes
7 answers
Why do modal dialogs that are opened through a menu item's click event process all window messages?
So for the past day or so I have been fixing a bug that is caused by a modal dialog. I work on an application which communicates with the server through the Windows message pump. When I use ShowDialog() to show a modal form, the message pump is…

Ed S.
- 122,712
- 22
- 185
- 265
4
votes
4 answers
Firefox/Gecko control interfering with Windows Forms key presses
Edit: In addition to the bounty, we're willing to pay $250 to have this bug fixed in the Firefox/Gecko codebase. Here is a simple test project (Visual Studio 2008 C#) that reproduces the problem.
Edit #2 we're willing to pay $600 to have this bug…

Judah Gabriel Himango
- 58,906
- 38
- 158
- 212
3
votes
3 answers
How does Spy++ construct its process list?
TL;DR - How does the Spy++ tool really construct its process list?
Stage
We have an MFC desktop application (running on Windows XP) that is hanging in that it doesn't react to any user input anymore. It is redrawn when switching to it via alt-tab…

Martin Ba
- 37,187
- 33
- 183
- 337
3
votes
1 answer
How do I prevent my window from being docked by virtual keyboard?
When I tap into a textbox in my application, the Microsoft on-screen keyboard appears and shrinks my application window so that my app only occupies 60% of the screen, and the on-screen keyboard occupies the remaining screen space.
How could I…

tmighty
- 10,734
- 21
- 104
- 218
3
votes
3 answers
Determine if a given window is currently being moved
Basically, I'm looking for a IsWindowMoving(HWND) Win32 API call. I need to know if the user is currently moving a window.
The window doesn't belong to me, so listening for WM_SYSCOMMAND / SC_MOVE or WM_MOVING isn't possible (I don't want to…

ste
- 818
- 2
- 9
- 16