mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 14:53:09 +00:00
[SHELL32] Move error message to rc files so can be translated (CORE-18786) (#4997)
CORE-18786
This commit is contained in:
parent
a351943caa
commit
23cd14d78b
38 changed files with 80 additions and 4 deletions
|
@ -565,8 +565,10 @@ HRESULT CNewMenu::NewItemByNonCommand(SHELLNEW_ITEM *pItem, LPWSTR wszName,
|
|||
}
|
||||
else
|
||||
{
|
||||
StringCbPrintfW(wszBuf, sizeof(wszBuf), L"Cannot create file: %s", wszName);
|
||||
MessageBoxW(NULL, wszBuf, L"Cannot create file", MB_OK | MB_ICONERROR); // FIXME load localized error msg
|
||||
CStringW Caption(MAKEINTRESOURCEW(IDS_CREATEFILE_CAPTION));
|
||||
CStringW Message(MAKEINTRESOURCEW(IDS_CREATEFILE_DENIED));
|
||||
Message.FormatMessage(Message.GetString(), wszName);
|
||||
MessageBoxW(0, Message, Caption, MB_ICONEXCLAMATION | MB_OK);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue