MessageBox
|
public static unsigned MessageBox(TWindow* parent, const string& title, const string &text, ulong type, TBitmap *bmp= ((void *)0), EWindowPlacement placement=PLACE_PARENT_CENTER)
public static unsigned MessageBox(TWindow * parent, const string& title, const string &text, ulong type, TBitmap *bmp= ((void *)0), EWindowPlacement placement=PLACE_PARENT_CENTER)
|
|
This function creates and displays a modal dialog that contains a text,
an icon and pushbuttons.
The following values define type and can be joined by the
'|' operator:
MB_ICONEXCLAMATION
|
|
---|
MB_ICONHAND
|
|
---|
MB_ICONSTOP
|
|
---|
MB_ICONINFORMATION
|
|
---|
MB_ICONQUESTION
|
|
---|
MB_ABORTRETRYIGNORE
|
|
---|
MB_OK
|
|
---|
MB_OKCANCEL
|
|
---|
MB_RETRYCANCEL
|
|
---|
MB_YESNO
|
|
---|
MB_YESNOCANCEL
|
|
---|
MB_DEFBUTTON1
|
The 1st button is the default button, which is the default
setting.
|
---|
MB_DEFBUTTON2
|
The 2nd button is the default button.
|
---|
MB_DEFBUTTON3
|
The 3rd button is the default button.
|
Possible return values are: IDACCEPT, IDABORT, IDOK, IDRETRY, IDYES,
IDNO, IDCANCEL and IDIGNORE.
|