notepad: Add Cancel button to message box displayed when opening a non-existent file with the command line.
This commit is contained in:
parent
1b2a6a08aa
commit
0c82108a48
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue