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 6 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 5 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 5 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 months 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...
asked 3 months ago
5 votes
1 replies
Mouse Enter/Leave messages not working?
I'm trying to detect mouse enter/leave messages CM_MOUSEENTER and CM_MOUSELEAVE but it isn't catching it. What am I doing wrong here? type TMy...
27 votes
2 replies
How can I stop my application from receiving a certain “message”?
POSSIBLE SOLUTION FOUND! I believe I have found a solution! I will be continuing testing to make sure it DOES in fact work, but I'm hopeful :) I...
6 votes
7 replies
Preventing Windows shut down
To detect and prevent shutdown the computer I use very simple program. It has only one form and one private procedure like below: TForm3 = class...
asked 5 years ago
9 votes
1 replies
Difference between messages with CN and WM prefixes
When looking at Delphi source code, I often see messages declarations from the Windows API, such as CN_NOTIFY and WM_NOTIFY. I would like to know...
asked 1 year ago
7 votes
3 replies
c# customizing controls on a save dialog — how to disable parent folder button?
I am working from the sample project here: http://www.codeproject.com/Articles/8086/Extending-the-save-file-dialog-class-in-NET I have hidden th...
4 votes
3 replies
How can a child window respond to a change in its parent
In a Win32 app is there a Windows message or some other notification that will get sent to a child window when it is placed into a different pare...
asked 8 years ago
5 votes
1 replies
Should I free a Delphi object auto-instantiated from a web services call?
Newbie question: I have a forms application. It has a separate thread which makes a web services call, and then posts the results of the call t...
7 votes
4 replies
Windows API: What is the first message a window is guaranteed to receive?
I've been used to thinking that WM_CREATE is the first message a window receives. However, when testing this assumption on a top-level window, it...
asked 9 years ago