重载消息循环主要代码

87 views 十月 26, 04 by Timothy

MSG msg;
if(::PeekMessage(&msg,NULL,0,0,PM_REMOVE)){
if(msg.message==WM_QUIT)
{
::PostQuitMessage(-1);
}

if(!AfxGetApp()->PreTranslageMessage(&msg))
{
::TranslateMessage(&msg);
::DispatchMessage(&msg);
}



随机日志

<

This entry does not have any comment... but you can be first.


Leave a Reply

(Ctrl+Enter)