From 48dcb8add0c48651231175009c38d1191496cd44 Mon Sep 17 00:00:00 2001 From: blobt Date: Fri, 11 Sep 2020 08:37:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A9=E7=AA=97=E5=8F=A3=E6=8C=81=E7=BB=AD?= =?UTF-8?q?=E8=BF=90=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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