[ros-diffs] [gedmurphy] 20152: - Close dialog if user clicks cancel
or close button is pressed
gedmurphy at svn.reactos.com
gedmurphy at svn.reactos.com
Tue Dec 13 23:03:02 CET 2005
- Close dialog if user clicks cancel or close button is pressed
- Fixes bug 1126
Modified: trunk/reactos/apps/utils/getfirefox/getfirefox.c
_____
Modified: trunk/reactos/apps/utils/getfirefox/getfirefox.c
--- trunk/reactos/apps/utils/getfirefox/getfirefox.c 2005-12-13
21:48:57 UTC (rev 20151)
+++ trunk/reactos/apps/utils/getfirefox/getfirefox.c 2005-12-13
22:02:43 UTC (rev 20152)
@@ -354,9 +354,18 @@
if (wParam == IDCANCEL)
{
SetWindowLongPtrW(Dlg, GWLP_USERDATA, 1);
+ PostMessage(Dlg, WM_CLOSE, 0, 0);
}
return FALSE;
+ case WM_CLOSE:
+ DestroyWindow(Dlg);
+ return TRUE;
+
+ case WM_DESTROY:
+ PostQuitMessage(0);
+ return TRUE;
+
default:
return FALSE;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051213/ea42894c/attachment.html
More information about the Ros-diffs
mailing list