mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 07:06:52 +00:00
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));
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue