Commit 0c82108a authored by Alexander Scott-Johns's avatar Alexander Scott-Johns Committed by Alexandre Julliard

notepad: Add Cancel button to message box displayed when opening a non-existent…

notepad: Add Cancel button to message box displayed when opening a non-existent file with the command line.
parent 1b2a6a08
......@@ -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;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment