From 4ddb614a269c3c45caede013beab043481b2ed1c Mon Sep 17 00:00:00 2001 From: Nishi Date: Sun, 6 Oct 2024 12:55:43 +0000 Subject: [PATCH] some git-svn-id: file:///raid/svn-personal/reisen/trunk@2 c77b849d-6a5c-934c-a956-7b968ca1e197 --- SFX/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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{ -- 2.43.0