mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-21 19:51:50 +00:00
Fixed WM_CLOSE handling
This commit is contained in:
1 parent
9378946e7d
commit
0c5c3b18ec
1 file changed
+5
-5
@@ -440,13 +440,13 @@ static LRESULT CALLBACK WindowProc(HWND hWnd, UINT msg, WPARAM wParam,
|
|||||||
PostMessage(hWnd, WM_NULL, 0, 0);
|
PostMessage(hWnd, WM_NULL, 0, 0);
|
||||||
DestroyMenu(hMenu);
|
DestroyMenu(hMenu);
|
||||||
break;
|
break;
|
||||||
case WM_CLOSE:
|
|
||||||
mg_stop(ctx);
|
|
||||||
Shell_NotifyIcon(NIM_DELETE, &TrayIcon);
|
|
||||||
PostQuitMessage(0);
|
|
||||||
return 0; // We've just sent our own quit message, with proper hwnd.
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case WM_CLOSE:
|
||||||
|
mg_stop(ctx);
|
||||||
|
Shell_NotifyIcon(NIM_DELETE, &TrayIcon);
|
||||||
|
PostQuitMessage(0);
|
||||||
|
return 0; // We've just sent our own quit message, with proper hwnd.
|
||||||
}
|
}
|
||||||
|
|
||||||
return DefWindowProc(hWnd, msg, wParam, lParam);
|
return DefWindowProc(hWnd, msg, wParam, lParam);
|
||||||
|
|||||||
Reference in new issue
Block a user