Browse Source

Make LoadIcon error message more clear

pull/15333/head
Don Ho 5 months ago
parent
commit
3ee5ef0205
  1. 2
      PowerEditor/src/WinControls/ImageListSet/ImageListSet.cpp

2
PowerEditor/src/WinControls/ImageListSet/ImageListSet.cpp

@ -54,7 +54,7 @@ void IconList::addIcon(int iconID, int cx, int cy, int failIconID) const
int userAnswer = 0;
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;
}

Loading…
Cancel
Save