Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Tue, 8 Jul 2008 17:52:50 +0100,    group: microsoft.public.win32.programmer.ui        back       


PeekMessage   
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.
date: Tue, 8 Jul 2008 17:52:50 +0100   author:   Nic

Re: PeekMessage   
>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
date: Tue, 08 Jul 2008 23:59:28 +0100   author:   David Lowndes lid

RE: PeekMessage   
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.
date: Mon, 14 Jul 2008 02:07:15 GMT   author:   (Jeffrey Tan[MSFT])

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us