]> Git repositories of Nishi - reisen.git/commitdiff
some
authorNishi <nishi@nishi.boats>
Sun, 6 Oct 2024 12:55:43 +0000 (12:55 +0000)
committerNishi <nishi@nishi.boats>
Sun, 6 Oct 2024 12:55:43 +0000 (12:55 +0000)
git-svn-id: file:///raid/svn-personal/reisen/trunk@2 c77b849d-6a5c-934c-a956-7b968ca1e197

SFX/main.c

index 9325fcd3e5526ce9fdcb5234189d3767b4985f67..6365794e86a7be921973cf709aeaf00fbb5b29d8 100644 (file)
@@ -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{