<C++>消息循环

GetMessage Function:

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

消息循环:

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

 

posted @ 2014-05-23 10:22  伍锋  阅读(496)  评论(0编辑  收藏  举报