<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);  
}
原文地址:https://www.cnblogs.com/virgil/p/3747079.html