mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:32:57 +00:00
[MAGNIFY] Call PostQuitMessage() only at the very end.
This commit is contained in:
parent
bd70987909
commit
a3403eff05
1 changed files with 10 additions and 6 deletions
|
@ -741,12 +741,14 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case WM_DESTROY:
|
case WM_DESTROY:
|
||||||
if(AppBarConfig.uEdge>=0) DoAppBarStuff(ABM_REMOVE);
|
{
|
||||||
|
if (AppBarConfig.uEdge >= 0)
|
||||||
|
DoAppBarStuff(ABM_REMOVE);
|
||||||
|
|
||||||
|
KillTimer(hWnd, 1);
|
||||||
|
|
||||||
/* Save settings to registry */
|
/* Save settings to registry */
|
||||||
SaveSettings();
|
SaveSettings();
|
||||||
KillTimer(hWnd , 1);
|
|
||||||
PostQuitMessage(0);
|
|
||||||
|
|
||||||
/* Cleanup notification icon */
|
/* Cleanup notification icon */
|
||||||
ZeroMemory(&nid, sizeof(nid));
|
ZeroMemory(&nid, sizeof(nid));
|
||||||
|
@ -755,11 +757,13 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
nid.hWnd = hWnd;
|
nid.hWnd = hWnd;
|
||||||
nid.uCallbackMessage = APPMSG_NOTIFYICON;
|
nid.uCallbackMessage = APPMSG_NOTIFYICON;
|
||||||
Shell_NotifyIcon(NIM_DELETE, &nid);
|
Shell_NotifyIcon(NIM_DELETE, &nid);
|
||||||
|
|
||||||
DestroyIcon(notifyIcon);
|
DestroyIcon(notifyIcon);
|
||||||
|
|
||||||
DestroyWindow(hOptionsDialog);
|
DestroyWindow(hOptionsDialog);
|
||||||
|
|
||||||
|
PostQuitMessage(0);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_CREATE:
|
case WM_CREATE:
|
||||||
{
|
{
|
||||||
|
@ -769,7 +773,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
hDesktopWindow = GetDesktopWindow();
|
hDesktopWindow = GetDesktopWindow();
|
||||||
|
|
||||||
/* Set the timer */
|
/* Set the timer */
|
||||||
SetTimer (hWnd , 1, TIMER_SPEED , NULL);
|
SetTimer(hWnd, 1, TIMER_SPEED, NULL);
|
||||||
|
|
||||||
/* Notification icon */
|
/* Notification icon */
|
||||||
notifyIcon = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_ICON), IMAGE_ICON, 16, 16, 0);
|
notifyIcon = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_ICON), IMAGE_ICON, 16, 16, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue