Hi, according to the documentation, PeekMessage(...) always retrieves WM_QUIT messages. In the case of a WM_QUIT message being retrieved, will PeekMessage(...) return a nonzero value? Also, how do I handle the WM_QUIT message - perhaps I could call PostQuitMessage(...)? TIA Nic.
>Hi, according to the documentation, PeekMessage(...) always retrieves >WM_QUIT messages. In the case of a WM_QUIT message being retrieved, will >PeekMessage(...) return a nonzero value? I assume from the documentation that it would - it's not the same as GetMessage. >Also, how do I handle the WM_QUIT >message - perhaps I could call PostQuitMessage(...)? No, just stop looping for messages and exit the application. A PostQuitMessage should already have been called in order for you receive WM_QUIT. Dave
Hi Nic, Have you reviewed David's reply to you? Does it make sense to you? If you still need any help, please feel free to feedback, thanks. Best regards, Jeffrey Tan Microsoft Online Community Support ========================================= Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@microsoft.com. This posting is provided "AS IS" with no warranties, and confers no rights.