Added MBX_WARNING flag to allow question dialogs with warning icon.

This commit is contained in:
OBattler
2020-11-20 02:57:15 +01:00
parent f6e7a9cbaa
commit e1e5ff563a
2 changed files with 6 additions and 1 deletions

View File

@@ -34,7 +34,9 @@ extern "C" {
#define MBX_ERROR 2
#define MBX_QUESTION 3
#define MBX_QUESTION_YN 4
#define MBX_FATAL 0x20
#define MBX_QMARK 0x10
#define MBX_WARNING 0x20
#define MBX_FATAL 0x40
#define MBX_ANSI 0x80
#define MBX_LINKS 0x100
#define MBX_DONTASK 0x200

View File

@@ -114,6 +114,9 @@ ui_msgbox_ex(int flags, void *header, void *message, void *btn1, void *btn2, voi
else
tdconfig.dwCommonButtons |= TDCBF_CANCEL_BUTTON;
}
if (flags & MBX_WARNING)
tdconfig.pszMainIcon = TD_WARNING_ICON;
break;
}