Here are the functions displaying a message box:
int __PROF_UIS_API ProfUISMsgBox(
HWND hWndParent,
UINT nMessageResourceID,
UINT nCaptionResourceID = 0,
UINT nMsgBoxStyle = __EXT_MB_DEFAULT_STYLES,
UINT nHelpID = 0,
__EXT_MFC_SAFE_LPCTSTR strUniqueID = NULL, // for __EXT_MB_DO_NOT_DISPLAY_AGAIN and __EXT_MB_DO_NOT_ASK_AGAIN
UINT nMsgBoxStyleEx = __EXT_MB_EX_DEFAULT_STYLES,
UINT nTimeoutSeconds = 0,
bool bIsDisabledTimeout = false,
CExtBitmap * pBmpIcon = NULL
);
int __PROF_UIS_API ProfUISMsgBox(
HWND hWndParent,
__EXT_MFC_SAFE_LPCTSTR strMessageText,
__EXT_MFC_SAFE_LPCTSTR strCaption = NULL,
UINT nMsgBoxStyle = __EXT_MB_DEFAULT_STYLES,
UINT nHelpID = 0,
__EXT_MFC_SAFE_LPCTSTR strUniqueID = NULL, // for __EXT_MB_DO_NOT_DISPLAY_AGAIN and __EXT_MB_DO_NOT_ASK_AGAIN
UINT nMsgBoxStyleEx = __EXT_MB_EX_DEFAULT_STYLES,
UINT nTimeoutSeconds = 0,
bool bIsDisabledTimeout = false,
CExtBitmap * pBmpIcon = NULL
);
If you are using the
__EXT_MB_DO_NOT_DISPLAY_AGAIN
and
__EXT_MB_DO_NOT_ASK_AGAIN
styles, then it’s recommended to specify some unique string in the
strUniqueID
parameter for each of message boxes in your application. But if you need to reset the checked state of such message boxes, then you should initialize the
CExtMsgBox
with the same parameters in constructor and invoke the
CExtMsgBox::ResetMsgBox()
method. You can invoke the
CExtMsgBox::ResetAllMsgBoxes()
static method to reset checked states of all the message boxes in your application.