Author: tfaber
Date: Fri Oct 21 07:42:00 2011
New Revision: 54218
URL:
http://svn.reactos.org/svn/reactos?rev=54218&view=rev
Log:
[SPIDER]
- Use a Yes/No message box for "Quit the current game?" instead of Ok/Cancel.
Patch by Lee Schroeder
See issue #6589 for more details.
Modified:
trunk/reactos/base/applications/games/spider/spider.cpp
Modified: trunk/reactos/base/applications/games/spider/spider.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/games/sp…
==============================================================================
--- trunk/reactos/base/applications/games/spider/spider.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/applications/games/spider/spider.cpp [iso-8859-1] Fri Oct 21
07:42:00 2011
@@ -63,7 +63,7 @@
dwDifficulty = IDC_DIF_FOURCOLORS;
NewGame();
- EndDialog(hDlg, TRUE);
+ EndDialog(hDlg, TRUE);
return TRUE;
case IDCANCEL:
@@ -136,9 +136,9 @@
UpdateWindow(hwnd);
hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDR_ACCELERATOR1));
-
+
DialogBox(hInstance, MAKEINTRESOURCE(IDD_DIFFICULTY), hwnd, DifficultyDlgProc);
-
+
while(GetMessage(&msg, NULL,0,0))
{
if(!TranslateAccelerator(hwnd, hAccelTable, &msg))
@@ -401,8 +401,8 @@
{
int ret;
- ret = MessageBox(hwnd, MsgQuit, szAppName, MB_OKCANCEL|MB_ICONQUESTION);
- if (ret == IDOK)
+ ret = MessageBox(hwnd, MsgQuit, szAppName, MB_YESNO|MB_ICONQUESTION);
+ if (ret == IDYES)
{
WinHelp(hwnd, szHelpPath, HELP_QUIT, 0);
DestroyWindow(hwnd);