Questions tagged [message-loop]
64 questions
0
votes
2 answers
What is the cleanest way to notify GUI to update in wxWidgets?
I have a small application that needs to update GUI elements if some event occurs in lower levels, say, socket goes off-line, or something like that.
In Windows, I could use PostMessage which would be sent through the chain to all Windows, and the…
![](../../users/profiles/459930.webp)
Coder
- 3,405
- 5
- 25
- 40
0
votes
1 answer
Create child window in WM_CREATE, relevance of same thread?
A typical pattern is to create a child window in the message callback (WndProc) at message WM_CREATE:
LRESULT APIENTRY WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) {
...
switch (message) {
case WM_CREATE:
....
hwndChild[i] =…
![](../../users/profiles/356726.webp)
Horst Walter
- 12,873
- 28
- 104
- 201
0
votes
3 answers
role of message loop in this program ? and few more questions
The following code works fine. It gives out the message when the user presses a key. But there are certain things I am not aware of. What is the role of Message Loop here ? I read that calling SetWindowsHookEx(...) registers a function with the…
![](../../users/profiles/648138.webp)
Suhail Gupta
- 19,563
- 57
- 170
- 298
-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.
…
![](../../users/profiles/2942659.webp)
Aistis Taraskevicius
- 665
- 2
- 9
- 26