1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/msgdlgg.h
3 // Purpose: Generic wxMessageDialog
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_GENERIC_MSGDLGG_H_
13 #define _WX_GENERIC_MSGDLGG_H_
15 class WXDLLIMPEXP_CORE wxGenericMessageDialog
: public wxMessageDialogBase
18 wxGenericMessageDialog(wxWindow
*parent
,
19 const wxString
& message
,
20 const wxString
& caption
= wxMessageBoxCaptionStr
,
21 long style
= wxOK
|wxCENTRE
,
22 const wxPoint
& pos
= wxDefaultPosition
);
24 virtual int ShowModal();
27 // Creates a message dialog taking any options that have been set after
28 // object creation into account such as custom labels.
29 void DoCreateMsgdialog();
31 void OnYes(wxCommandEvent
& event
);
32 void OnNo(wxCommandEvent
& event
);
33 void OnCancel(wxCommandEvent
& event
);
35 // can be overridden to provide more contents to the dialog
36 virtual void AddMessageDialogCheckBox(wxSizer
*WXUNUSED(sizer
)) { }
37 virtual void AddMessageDialogDetails(wxSizer
*WXUNUSED(sizer
)) { }
44 DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog
)
47 #endif // _WX_GENERIC_MSGDLGG_H_