]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/msgdlgg.h
Add wxUSE_RIBBON to wx/setup_inc.h and wx/chkconf.h.
[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 void OnYes(wxCommandEvent& event);
28 void OnNo(wxCommandEvent& event);
29 void OnCancel(wxCommandEvent& event);
30
31 private:
32 void DoCreateMsgdialog();
33
34 wxPoint m_pos;
35 bool m_created;
36
37 DECLARE_EVENT_TABLE()
38 DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog)
39 };
40
41 #endif // _WX_GENERIC_MSGDLGG_H_