diff --git a/main.cpp b/main.cpp index e5c4de2..d48323b 100644 --- a/main.cpp +++ b/main.cpp @@ -52,5 +52,20 @@ INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine ShowWindow(hwnd, SW_SHOW); 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; } \ No newline at end of file