Display[Error|Info]Message: Add optional parameter 'Caption'

This commit is contained in:
M. Liebmann
2015-09-17 12:01:05 +02:00
parent 653d196e16
commit 8ad20d4513
2 changed files with 26 additions and 2 deletions

View File

@@ -334,7 +334,27 @@ void DisplayErrorMessage(const char * const ErrorMsg)
ShowMsg(LOCALE_MESSAGEBOX_ERROR, ErrorMsg, CMessageBox::mbrCancel, CMessageBox::mbCancel, NEUTRINO_ICON_ERROR);
}
void DisplayInfoMessage(const char * const ErrorMsg)
void DisplayErrorMessage(const char * const ErrorMsg, const neutrino_locale_t Caption)
{
ShowMsg(LOCALE_MESSAGEBOX_INFO, ErrorMsg, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
ShowMsg(Caption, ErrorMsg, CMessageBox::mbrCancel, CMessageBox::mbCancel, NEUTRINO_ICON_ERROR);
}
void DisplayErrorMessage(const char * const ErrorMsg, const std::string &Caption)
{
ShowMsg(Caption, ErrorMsg, CMessageBox::mbrCancel, CMessageBox::mbCancel, NEUTRINO_ICON_ERROR);
}
void DisplayInfoMessage(const char * const InfoMsg)
{
ShowMsg(LOCALE_MESSAGEBOX_INFO, InfoMsg, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
}
void DisplayInfoMessage(const char * const InfoMsg, const neutrino_locale_t Caption)
{
ShowMsg(Caption, InfoMsg, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
}
void DisplayInfoMessage(const char * const InfoMsg, const std::string &Caption)
{
ShowMsg(Caption, InfoMsg, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
}