About 148,000 results
Open links in new tab
  1. c# - What is a message pump? - Stack Overflow

    There is a main loop which always runs looking at this message queue and then dispatching the messages (or events) to the listeners. The Wikipedia article Message loop in Microsoft Windows …

  2. visual c++ - Is it possible to create a message loop without creating a ...

    Aug 21, 2018 · A message loop is not dependent on a window, but a window is dependent on a message loop. But what kind of messaging is the library using that doesn't involve sending …

  3. c++ - Windows message loop - Stack Overflow

    Jul 16, 2009 · Obviously something it posting new messages into the queue while Translate/Dispatch is done. You should just list all messages retrieved and deduce what message it is and why it appears.

  4. Changing a Window's message loop thread - Stack Overflow

    Dec 3, 2010 · 6 The Windows message pump is really just a while loop that picks messages off a queue using PeekMessage() and call's your windows WndProc function. There's a little more to it than that, …

  5. Does a win32 application have one message loop? Or is it one message ...

    From About Messages and Message Queues: Applications with multiple threads can include a message loop in each thread that creates a window. Note that a message queue CAN support multiple …

  6. How does the message queue work in Win32? - Stack Overflow

    8 I read some stuff on Win32 and how the message loop works, and there's something that is still unclear to me: What exactly is stored in the message queue? The integer value that corresponds to …

  7. c# - Setting up Hook on Windows messages - Stack Overflow

    Mar 12, 2012 · I read the documentation of setwindowshookex and also did some googling but am really lost as I have no background of C# and handling windows messages/events. So, If you guys can …

  8. c++ - integration of windows message loop (PeekMessage ...

    Oct 30, 2025 · FYI, your example windows message loop should use GetMessage not PeekMessage. If there is no message at the exact moment it's called, PeekMessage will return false, breaking your …

  9. windows - Question about message loop - Stack Overflow

    Nov 22, 2010 · 2 I have a question haunting me for a long time. Short version: What's the working paradigm of Windows Message Loop? Detailed version: When we start a Windows application (not a …

  10. Keyboard Input & the Win32 message loop - Stack Overflow

    Mar 14, 2010 · How do I handle key presses and key up events in the windows message loop? I need to be able to call two functions OnKeyUp(char c); and OnKeyDown(char c);. Current literature I've found …