mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2025-05-10 08:40:41 +08:00
19 lines
347 B
C
19 lines
347 B
C
/*
|
|
* A typical message loop.
|
|
*/
|
|
|
|
MSG Msg;
|
|
MAINWINCREATE CreateInfo;
|
|
HWND hMainWnd;
|
|
|
|
InitCreateInfo (&CreateInfo);
|
|
|
|
hMainWnd = CreateMainWindow (&CreateInfo);
|
|
if (hMainWnd == HWND_INVALID)
|
|
return -1;
|
|
|
|
while (GetMessage (&Msg, hMainWnd)) {
|
|
TranslateMessage (&Msg);
|
|
DispatchMessage (&Msg);
|
|
}
|