[SHELL32] Move error message to rc files so can be translated (CORE-18786) (#4997)

CORE-18786
This commit is contained in:
Jose Carlos Jesus 2023-02-22 20:43:53 -04:00 committed by GitHub
parent a351943caa
commit 23cd14d78b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 80 additions and 4 deletions

View file

@ -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;