mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 05:37:44 +00:00
- Let the user close dialogs by clicking the close (X) button.
svn path=/trunk/; revision=26053
This commit is contained in:
parent
b788577769
commit
47199f7b6b
|
@ -105,6 +105,7 @@ BOOL CALLBACK TimesDlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam )
|
|||
case WM_COMMAND:
|
||||
switch( LOWORD( wParam ) ) {
|
||||
case IDOK:
|
||||
case IDCANCEL:
|
||||
EndDialog( hDlg, 0 );
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -122,6 +123,7 @@ BOOL CALLBACK AboutDlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam )
|
|||
case WM_COMMAND:
|
||||
switch( LOWORD( wParam ) ) {
|
||||
case IDOK:
|
||||
case IDCANCEL:
|
||||
EndDialog( hDlg, 0 );
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue