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
1 changed files with 5 additions and 1 deletions

View File

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