WidgetMessageBox Class Template Reference
[Widgets]

MessageBox class. More...

List of all members.

Public Types

enum  Buttons
 Enums for which buttons you want the MessageBox to have.
enum  Icon
 Enums for which ICON you want the MessageBox to have.
typedef WidgetMessageBox<
Parent > 
ObjectType
 Object type.
enum  RetVal
 Enums for Return Value that the MessageBox::show can return.
typedef WidgetMessageBox<
Parent > 
ThisType
 Class type.

Public Member Functions

RetVal show (const SmartUtil::tstring &body, const SmartUtil::tstring &header=_T("SmartWinMessageBox"), Buttons buttons=BOX_OK, Icon icon=BOX_ICONINFORMATION)
 Shows the actual MessageBox.


Detailed Description

template<class Parent>
class SmartWin::WidgetMessageBox< Parent >

MessageBox class.

messagebox.PNG
Class for showing a MessageBox.
Either derive from it, call WidgetFactory::createMessageBox or use normal Constructor.
Note!
If you wish to use this class with Parent classes other than those from SmartWin you need to expose a public function called "parent" taking no arguments returning and HWND in the Parent template parameter.
The complete signature of the function will then be "HWND parent()"


Member Typedef Documentation

typedef WidgetMessageBox< Parent > ObjectType

Object type.

Note, not a pointer!!!!


Member Function Documentation

WidgetMessageBox< Parent >::RetVal show ( const SmartUtil::tstring &  body,
const SmartUtil::tstring &  header = _T("SmartWinMessageBox"),
Buttons  buttons = BOX_OK,
Icon  icon = BOX_ICONINFORMATION 
)

Shows the actual MessageBox.

First parameter is the body shown inside the Message Box.
Second parameter is the HEADER of the Message Box ( the text shown in the blue line, optional parameter )
Third parameter is the Buttons you want the Message Box to have ( optional parameter )
Fourth parameter is the Icon you want the Message Box to display ( normally in the upper left corner )

Back to SmartWin website
SourceForge.net Logo