|
@ -52,5 +52,20 @@ INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine |
|
|
|
|
|
|
|
|
ShowWindow(hwnd, SW_SHOW); |
|
|
ShowWindow(hwnd, SW_SHOW); |
|
|
UpdateWindow(hwnd); |
|
|
UpdateWindow(hwnd); |
|
|
|
|
|
|
|
|
|
|
|
MSG msg; |
|
|
|
|
|
while (true) |
|
|
|
|
|
{ |
|
|
|
|
|
if (PeekMessage(&msg, NULL, NULL, NULL, PM_REMOVE)) |
|
|
|
|
|
{ |
|
|
|
|
|
if (msg.message == WM_QUIT) |
|
|
|
|
|
{ |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
TranslateMessage(&msg); |
|
|
|
|
|
DispatchMessage(&msg); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |