Make LoadIcon error message more clear

pull/15333/head
Don Ho 5 months ago
parent 46c5a0c226
commit 3ee5ef0205

@ -54,7 +54,7 @@ void IconList::addIcon(int iconID, int cx, int cy, int failIconID) const
int userAnswer = 0; int userAnswer = 0;
if (!ignoreWarning) if (!ignoreWarning)
{ {
userAnswer = ::MessageBoxA(NULL, "IconList::addIcon : LoadIcon() function return null.\nIgnore warning?", std::to_string(iconID).c_str(), MB_YESNOCANCEL | MB_ICONWARNING); userAnswer = ::MessageBoxA(NULL, "IconList::addIcon : LoadIcon() function return null.\nIgnore the error?\n\n\"Yes\": ignore the error and launch Notepad++\n\"No\": Quit Notepad++\n\"Cancel\": display all errors", std::to_string(iconID).c_str(), MB_YESNOCANCEL | MB_ICONWARNING);
ignoreWarning = userAnswer == IDYES; ignoreWarning = userAnswer == IDYES;
} }

Loading…
Cancel
Save