notepad: Add Cancel button to message box displayed when opening a non-existent file with the command line.

This commit is contained in:
Alexander Scott-Johns 2009-07-07 19:31:48 +01:00 committed by Alexandre Julliard
parent 1b2a6a08aa
commit 0c82108a48

View file

@ -607,7 +607,7 @@ static int AlertFileDoesNotExist(LPCWSTR szFileName)
LoadStringW(Globals.hInstance, STRING_ERROR, szResource, ARRAY_SIZE(szResource)); LoadStringW(Globals.hInstance, STRING_ERROR, szResource, ARRAY_SIZE(szResource));
nResult = MessageBoxW(Globals.hMainWnd, szMessage, szResource, nResult = MessageBoxW(Globals.hMainWnd, szMessage, szResource,
MB_ICONEXCLAMATION | MB_YESNO); MB_ICONEXCLAMATION | MB_YESNOCANCEL);
return(nResult); return(nResult);
} }
@ -707,6 +707,10 @@ static void HandleCommandLine(LPWSTR cmdline)
case IDNO: case IDNO:
break; break;
case IDCANCEL:
DestroyWindow(Globals.hMainWnd);
break;
} }
} }
} }