Murphy, Ged (Bolton) wrote:
This should really be
while( GetMessage( &msg, NULL, 0, 0 ) > 0 )
as GetMessage returns <0 on failure.
It will then break on failure or WM_QUIT
Just being anal though as GetMessage should never really fail ;)
See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinU…
The loop shouldn't be broken if GetMessage returns -1.
- Thomas