Questions tagged [window-messages]
79 questions
0
votes
1 answer
What conditions need to be fulfilled for a window message to be posted?
I've successfully registered a window class using RegisterClassEx and created a window using CreateWindowEx:
m_hInstance = ::GetModuleHandle(NULL);
...
m_hWnd = ::CreateWindowEx(0, "CMyClassName", "Message Window", 0, 0, 0, 0, 0, HWND_MESSAGE, 0,…

Simon
- 25,468
- 44
- 152
- 266
0
votes
1 answer
How can I handle control messages on the parent CDialog?
I've got some control like CtrlTree on CMyDialog.
I want to handle messages like ON_WM_LBUTTONDOWN() from CTreeCtrl in the CMyDialog class.
Is there any way in MFC to redirect message stream to parent?

diego2la
- 97
- 10
-1
votes
1 answer
Window message loop ( WndProc | While (GetMEssage)) thread in .NET Core
I am trying to subscribe to window messages using .Net Core
I am able to receive initial messages to create a window ( through pinvoke) and destroy messages. But after that my created windows gets blocked and does not receive any other messages.
…

Aistis Taraskevicius
- 781
- 2
- 10
- 31
-6
votes
1 answer
Why doesn't my Windows API callback function run?
I've written a code that terminates egui.exe. But my callback function doesn't run after the WM_CLOSE message is processed. Why?
#include
#include
#include
using namespace std;
HWND ESETWindow = 0; //Variable…

Javad Bayat
- 160
- 13