From: Nishi Date: Sun, 6 Oct 2024 12:55:43 +0000 (+0000) Subject: some X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;h=4ddb614a269c3c45caede013beab043481b2ed1c;p=reisen.git some git-svn-id: file:///raid/svn-personal/reisen/trunk@2 c77b849d-6a5c-934c-a956-7b968ca1e197 --- diff --git a/SFX/main.c b/SFX/main.c index 9325fcd..6365794 100644 --- a/SFX/main.c +++ b/SFX/main.c @@ -9,7 +9,11 @@ FILE* finst; LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) { if(msg == WM_CLOSE){ - DestroyWindow(hWnd); + int ret = MessageBox(hWnd, "Are you sure you want to quit?", "Confirm", MB_YESNO | MB_ICONQUESTION | MB_DEFBUTTON2); + + if(ret == IDYES){ + DestroyWindow(hWnd); + } }else if(msg == WM_DESTROY){ PostQuitMessage(0); }else{