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.