mirror of
https://github.com/reactos/reactos.git
synced 2024-09-13 06:11:59 +00:00
- Close dialog if user clicks cancel or close button is pressed
- Fixes bug 1126 svn path=/trunk/; revision=20152
This commit is contained in:
parent
f5fe98f364
commit
e5f571b48a
|
@ -354,9 +354,18 @@ dlProc(HWND Dlg, UINT Msg, WPARAM wParam, LPARAM lParam)
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue