Contents Up Previous Next

wxMessageDialog

This class represents a dialog that shows a single or multi-line message, with a choice of OK, Yes, No and Cancel buttons.

Derived from

wxDialog
wxWindow
wxEvtHandler
wxObject

Include files

<wx/msgdlg.h>

See also

wxMessageDialog overview

Members

wxMessageDialog::wxMessageDialog
wxMessageDialog::~wxMessageDialog
wxMessageDialog::ShowModal


wxMessageDialog::wxMessageDialog

wxMessageDialog(wxWindow* parent, const wxString& message, const wxString& caption = "Message box", long style = wxOK | wxCANCEL, const wxPoint& pos = wxDefaultPosition)

Constructor. Use wxMessageDialog::ShowModal to show the dialog.

Parameters

parent

message

caption

style

pos


wxMessageDialog::~wxMessageDialog

~wxMessageDialog()

Destructor.


wxMessageDialog::ShowModal

int ShowModal()

Shows the dialog, returning one of wxID_OK, wxID_CANCEL, wxID_YES, wxID_NO.