Post correct notification code on WM_CLOSE for dialogs.
This commit is contained in:
parent
9caa6bafc0
commit
5261df0306
|
@ -255,7 +255,7 @@ static LRESULT DEFDLG_Proc( HWND hwnd, UINT msg, WPARAM wParam,
|
|||
return dlgInfo ? (LRESULT)dlgInfo->hUserFont : 0;
|
||||
|
||||
case WM_CLOSE:
|
||||
PostMessageA( hwnd, WM_COMMAND, IDCANCEL,
|
||||
PostMessageA( hwnd, WM_COMMAND, MAKEWPARAM(IDCANCEL, BN_CLICKED),
|
||||
(LPARAM)GetDlgItem( hwnd, IDCANCEL ) );
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue