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_FWD_CORE wxSizer
;
17 class WXDLLIMPEXP_CORE wxGenericMessageDialog
: public wxMessageDialogBase
20 wxGenericMessageDialog(wxWindow
*parent
,
21 const wxString
& message
,
22 const wxString
& caption
= wxMessageBoxCaptionStr
,
23 long style
= wxOK
|wxCENTRE
,
24 const wxPoint
& pos
= wxDefaultPosition
);
26 virtual int ShowModal();
29 // Creates a message dialog taking any options that have been set after
30 // object creation into account such as custom labels.
31 void DoCreateMsgdialog();
33 void OnYes(wxCommandEvent
& event
);
34 void OnNo(wxCommandEvent
& event
);
35 void OnHelp(wxCommandEvent
& event
);
36 void OnCancel(wxCommandEvent
& event
);
38 // can be overridden to provide more contents to the dialog
39 virtual void AddMessageDialogCheckBox(wxSizer
*WXUNUSED(sizer
)) { }
40 virtual void AddMessageDialogDetails(wxSizer
*WXUNUSED(sizer
)) { }
43 // Creates and returns a standard button sizer using the style of this
44 // dialog and the custom labels, if any.
46 // May return NULL on smart phone platforms not using buttons at all.
47 wxSizer
*CreateMsgDlgButtonSizer();
53 DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog
)
56 #endif // _WX_GENERIC_MSGDLGG_H_