首页 > 技术文章 > <C++>消息循环

virgil 2014-05-23 10:22 原文

GetMessage Function:

BOOL GetMessage(
         LPMSG lpMsg,
         HWND hWnd,
         UINT wMsgFilterMin,
         UINT wMsgFilterMax
);

消息循环:

MSG msg;
while(GetMessage(&msg,NULL,0,0))
{
         TranslateMessage(&msg);
         DispatchMessage(&msg);  
}

 

推荐阅读