Commit 1ffe652c authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

Closing a dialog using the menu bar ("x" or "-" button or windows

menu) must generate a WM_COMMAND+IDCANCEL message, unlike closing normal windows when DestroyWindow() is called.
parent 3143f67b
......@@ -223,8 +223,8 @@ static LRESULT DEFDLG_Proc( HWND32 hwnd, UINT32 msg, WPARAM32 wParam,
return dlgInfo->hUserFont;
case WM_CLOSE:
EndDialog32( hwnd, TRUE );
DestroyWindow32( hwnd );
PostMessage32A( hwnd, WM_COMMAND, IDCANCEL,
(LPARAM)GetDlgItem32( hwnd, IDCANCEL ) );
return 0;
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment