]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/msgdlgg.h
Properly implement Cleared() by calling row_deleted on every child of root, fixes...
[wxWidgets.git] / include / wx / generic / msgdlgg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/msgdlgg.h
3 // Purpose: Generic wxMessageDialog
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_GENERIC_MSGDLGG_H_
13 #define _WX_GENERIC_MSGDLGG_H_
14
15 class WXDLLIMPEXP_CORE wxGenericMessageDialog : public wxMessageDialogBase
16 {
17 public:
18 wxGenericMessageDialog(wxWindow *parent,
19 const wxString& message,
20 const wxString& caption = wxMessageBoxCaptionStr,
21 long style = wxOK|wxCENTRE,
22 const wxPoint& pos = wxDefaultPosition);
23
24 virtual int ShowModal();
25
26 protected:
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();
30
31 void OnYes(wxCommandEvent& event);
32 void OnNo(wxCommandEvent& event);
33 void OnCancel(wxCommandEvent& event);
34
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)) { }
38
39 private:
40 wxPoint m_pos;
41 bool m_created;
42
43 DECLARE_EVENT_TABLE()
44 DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog)
45 };
46
47 #endif // _WX_GENERIC_MSGDLGG_H_