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 /////////////////////////////////////////////////////////////////////////////
16 #include "wx/dialog.h"
18 // type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO
19 // Returns wxYES/NO/OK/CANCEL
21 extern WXDLLEXPORT_DATA(const wxChar
*) wxMessageBoxCaptionStr
;
23 class WXDLLEXPORT wxGenericMessageDialog
: public wxDialog
, public wxMessageDialogBase
25 DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog
)
28 wxGenericMessageDialog(wxWindow
*parent
, const wxString
& message
,
29 const wxString
& caption
= wxMessageBoxCaptionStr
,
30 long style
= wxOK
|wxCENTRE
, const wxPoint
& pos
= wxDefaultPosition
);
32 void OnYes(wxCommandEvent
& event
);
33 void OnNo(wxCommandEvent
& event
);
34 void OnCancel(wxCommandEvent
& event
);
40 #if (!defined( __WXMSW__ ) && !defined( __WXMAC__) && !defined(__WXPM__)) || defined(__WXUNIVERSAL__)
41 #define wxMessageDialog wxGenericMessageDialog
44 #endif // __MSGDLGH_G__