Author: ekohl
Date: Sat Mar 10 12:29:50 2007
New Revision: 26053
URL:
http://svn.reactos.org/svn/reactos?rev=26053&view=rev
Log:
- Let the user close dialogs by clicking the close (X) button.
Modified:
trunk/reactos/base/applications/games/winemine/dialog.c
Modified: trunk/reactos/base/applications/games/winemine/dialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/games/wi…
==============================================================================
--- trunk/reactos/base/applications/games/winemine/dialog.c (original)
+++ trunk/reactos/base/applications/games/winemine/dialog.c Sat Mar 10 12:29:50 2007
@@ -97,7 +97,7 @@
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 @@
case WM_COMMAND:
switch( LOWORD( wParam ) ) {
case IDOK:
+ case IDCANCEL:
EndDialog( hDlg, 0 );
return TRUE;
}
@@ -122,6 +123,7 @@
case WM_COMMAND:
switch( LOWORD( wParam ) ) {
case IDOK:
+ case IDCANCEL:
EndDialog( hDlg, 0 );
return TRUE;
}