Post correct notification code on WM_CLOSE for dialogs.

This commit is contained in:
Dmitry Timoshkov 2003-01-14 19:29:15 +00:00 committed by Alexandre Julliard
parent 9caa6bafc0
commit 5261df0306
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ static LRESULT DEFDLG_Proc( HWND hwnd, UINT msg, WPARAM wParam,
return dlgInfo ? (LRESULT)dlgInfo->hUserFont : 0; return dlgInfo ? (LRESULT)dlgInfo->hUserFont : 0;
case WM_CLOSE: case WM_CLOSE:
PostMessageA( hwnd, WM_COMMAND, IDCANCEL, PostMessageA( hwnd, WM_COMMAND, MAKEWPARAM(IDCANCEL, BN_CLICKED),
(LPARAM)GetDlgItem( hwnd, IDCANCEL ) ); (LPARAM)GetDlgItem( hwnd, IDCANCEL ) );
return 0; return 0;