]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
e5b50758 | 2 | // Name: wx/generic/msgdlgg.h |
c801d85f KB |
3 | // Purpose: Generic wxMessageDialog |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // RCS-ID: $Id$ | |
e5b50758 | 8 | // Copyright: (c) Julian Smart |
ca65c044 | 9 | // Licence: wxWindows licence |
c801d85f KB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef __MSGDLGH_G__ | |
13 | #define __MSGDLGH_G__ | |
14 | ||
c801d85f KB |
15 | #include "wx/setup.h" |
16 | #include "wx/dialog.h" | |
17 | ||
18 | // type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO | |
19 | // Returns wxYES/NO/OK/CANCEL | |
20 | ||
f4fffffc | 21 | extern WXDLLEXPORT_DATA(const wxChar*) wxMessageBoxCaptionStr; |
c801d85f | 22 | |
e5b50758 | 23 | class WXDLLEXPORT wxGenericMessageDialog: public wxDialog, public wxMessageDialogBase |
c801d85f KB |
24 | { |
25 | DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog) | |
15b24b14 | 26 | |
c801d85f | 27 | public: |
2179d579 | 28 | wxGenericMessageDialog(wxWindow *parent, const wxString& message, |
15b24b14 | 29 | const wxString& caption = wxMessageBoxCaptionStr, |
c801d85f KB |
30 | long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition); |
31 | ||
32 | void OnYes(wxCommandEvent& event); | |
33 | void OnNo(wxCommandEvent& event); | |
34 | void OnCancel(wxCommandEvent& event); | |
2179d579 | 35 | |
15b24b14 | 36 | private: |
479cd5de | 37 | DECLARE_EVENT_TABLE() |
c801d85f KB |
38 | }; |
39 | ||
21709999 | 40 | #if (!defined( __WXMSW__ ) && !defined( __WXMAC__) && !defined(__WXPM__)) || defined(__WXUNIVERSAL__) |
c801d85f | 41 | #define wxMessageDialog wxGenericMessageDialog |
c801d85f KB |
42 | #endif |
43 | ||
ca65c044 | 44 | #endif // __MSGDLGH_G__ |