mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[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. svn path=/trunk/; revision=54218
This commit is contained in:
parent
50023c1e97
commit
c7a9875e75
1 changed files with 5 additions and 5 deletions
|
@ -63,7 +63,7 @@ INT_PTR CALLBACK DifficultyDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM l
|
|||
dwDifficulty = IDC_DIF_FOURCOLORS;
|
||||
|
||||
NewGame();
|
||||
EndDialog(hDlg, TRUE);
|
||||
EndDialog(hDlg, TRUE);
|
||||
return TRUE;
|
||||
|
||||
case IDCANCEL:
|
||||
|
@ -136,9 +136,9 @@ int WINAPI _tWinMain(HINSTANCE hInst, HINSTANCE hPrev, LPTSTR szCmdLine, int iCm
|
|||
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 @@ LRESULT CALLBACK WndProc (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
|
|||
{
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue