Questions tagged [windows-messages]

0 votes
0 replies
Windows Message Queue: How to inspect the nbr of 'posted messages to a process' message queue' from C#
(We are developing an application in C#, WinForms + WPF, VS 2017, .NET Framework 4.7.1+) We have run into issue regarding this error: Win32E...
asked 3 months ago
0 votes
1 replies
Cannot get program to process WM_POWERBROADCAST message
I have a program that I want to automatically terminate on a WM_POWERBROADCAST message. For some reason, however, it is not terminating when I ca...
0 votes
1 replies
Why can't I detect Windows messages that are being sent to my CommonDialog? What is the right way of intercepting them?
I am trying to detect when the user clicks on a Form and a CommonDialog. Forms are fairly straightforward. I create a MessageFilter class that i...
0 votes
1 replies
Why isn't WM_NCACTIVATE message sent to a Window with its SizeToContent set to Height
I've written a WndProc to know if current Window is flashing. It is as follows: private IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam,...
asked 2 months ago
0 votes
0 replies
Confused by windows keyboard event lParam
Part of the code: LRESULT CALLBACK WindowProc( _In_ HWND hwnd, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam) { ......
asked 2 months ago
0 votes
1 replies
How to determine which window was moved/resized from WM_EXITSIZEMOVE message?
I've been processing all the numerous individual WM_MOVE, WM_SIZING, and WM_SIZE messages for a multiple-GUI/window application, but I've just le...
asked 3 weeks ago
0 votes
0 replies
Looking for a State Transition Diagram for the life cycle of modeless MFC dialogs
I'm trying to fix or replace some legacy code in a C++ MFC application which manages a map of enum ids to currently open (or yet to be opened) ch...