version : October 2000
location : Platform SDK/User Interface Services/Windows User Interface/Windowing/Messages and Messages Queues/About/Handling/Message Loop
quote :
MSG msg;
while( GetMessage( &msg, NULL, 0, 0 ) != 0 && GetMessage(&msg, (HWND) NULL, 0, 0) != -1)
{
TranslateMessage( &msg );
DispatchMessage( &msg );
}
|
should it be replaced by this: ?
MSG msg;
int rtn;
while(1)
{
rtn = GetMessage(&msg, NULL, 0, 0);
if (rtn == 0 || rtn == -1)
break;
TranslateMessage( &msg );
DispatchMessage( &msg );
}
|
cause i wonder(sure) if the code quoted from MSDN will get one extra msg from MsgQueue
am i right? M$ sux?
------------------------------
Dedicate to nobody, I''m nobody
------------------------------------------------------CCP is fascistic, they even banned www.sourceforge.net