1#ifndef __SMESSAGEBOX__H__
2#define __SMESSAGEBOX__H__
5#include <helper/SDpiHelper.hpp>
6#include <interface/SMessageBox-i.h>
11#define NAME_MSGBOX_BTNSWITCH L"btnSwitch"
12#define NAME_MSGBOX_TEXT L"msgtext"
13#define NAME_MSGBOX_TITLE L"msgtitle"
14#define NAME_MSGBOX_ICON L"msgicon"
15#define NAME_MSGBOX_BTN1 L"button1st"
16#define NAME_MSGBOX_BTN2 L"button2nd"
17#define NAME_MSGBOX_BTN3 L"button3rd"
41 INT_PTR
MessageBox(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType);
85 EVENT_ID_COMMAND_RANGE(IDOK, IDNO, OnBtnClick)
92 REFLECT_NOTIFICATIONS_EX()
Dialog host window class.
void EndDialog(INT_PTR nResult) OVERRIDE
Ends the dialog.
SHostDialog(LPCWSTR pszXmlName=NULL)
Constructor.
virtual SXmlNode OnGetInitXmlNode(SXmlDoc &xmlDoc)
Gets the initial XML node.
virtual SStringT OnGetButtonText(int nBtnID) const
Get the button text.
void OnBtnClick(int uID)
Handle button click event.
SMessageBoxImpl()
Constructor.
virtual BOOL OnSetIcon(UINT uType)
Set the icon.
INT_PTR MessageBox(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType)
Display a message box.
BOOL OnInitDialog(HWND wnd, LPARAM lInitParam)
Initialize the dialog.
Implementation of IXmlDoc.
Class representing an XML node.