mirror of
https://github.com/reactos/reactos.git
synced 2024-07-21 19:58:08 +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
|
@ -97,7 +97,7 @@ BOOL CALLBACK TimesDlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam )
|
|||
for( i = 0; i < 3; i++ )
|
||||
SetDlgItemText( hDlg, (IDC_NAME1) + i, p_board->best_name[i] );
|
||||
|
||||
/* set best times */
|
||||
/* set best times */
|
||||
for( i = 0; i < 3; i++ )
|
||||
SetDlgItemInt( hDlg, (IDC_TIME1) + i, p_board->best_time[i], FALSE );
|
||||
return TRUE;
|
||||
|
@ -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