wGui::CMessageBox Class Reference

The CMessageBox class is a simple class that brings up a modal dialog box with a message and waits for user input. More...

#include <wg_messagebox.h>

Inheritance diagram for wGui::CMessageBox:

wGui::CFrame wGui::CWindow wGui::CMessageClient

Public Types

Public Member Functions

Protected Attributes


Detailed Description

The CMessageBox class is a simple class that brings up a modal dialog box with a message and waits for user input.

Definition at line 36 of file wg_messagebox.h.


Constructor & Destructor Documentation

wGui::CMessageBox::CMessageBox ( CView pParent,
CFontEngine pFontEngine,
const std::wstring &  sTitle,
const std::wstring &  sMessage,
int  iButtons = BUTTON_OK 
)

Parameters:
pParent A pointer to the parent view
pFontEngine A pointer to the font engine to use when drawing the control If this is set to 0 it will use the default font engine specified by the CApplication (which must be set before instantiating this object)
sTitle The window title, which will appear in the title bar of the view
sMessage The message to display in the message box
iButtons A flag field to indicate which buttons to display in the message box, defaults to a single OK button

Definition at line 31 of file wg_messagebox.cpp.

References FitToText(), m_ButtonMap, and m_pMessageLabel.


Member Function Documentation

bool wGui::CMessageBox::HandleMessage ( CMessage pMessage  )  [virtual]

CScrollBars handle MOUSE_BUTTONDOWN and MOUSE_BUTTONUP messages

Parameters:
pMessage A pointer to the message

Reimplemented from wGui::CFrame.

Definition at line 76 of file wg_messagebox.cpp.

References wGui::CFrame::CloseFrame(), wGui::CMessage::CTRL_MESSAGEBOXRETURN, wGui::CMessage::CTRL_SINGLELCLICK, wGui::CMessage::Destination(), wGui::CFrame::HandleMessage(), wGui::CMessageServer::Instance(), m_ButtonMap, wGui::CWindow::m_pParentWindow, wGui::CMessage::MessageType(), wGui::CMessageServer::QueueMessage(), and wGui::CMessage::Source().


The documentation for this class was generated from the following files:
Generated on Wed May 16 23:11:27 2007 for wGui by  doxygen 1.5.1