1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Generic wxMessageDialog
4 // Author: Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "msgdlgg.h"
20 #include "wx/dialog.h"
22 // type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO
23 // Returns wxYES/NO/OK/CANCEL
25 extern WXDLLEXPORT_DATA(const wxChar
*) wxMessageBoxCaptionStr
;
27 class WXDLLEXPORT wxGenericMessageDialog
: public wxDialog
29 DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog
)
32 wxGenericMessageDialog(wxWindow
*parent
, const wxString
& message
,
33 const wxString
& caption
= wxMessageBoxCaptionStr
,
34 long style
= wxOK
|wxCENTRE
, const wxPoint
& pos
= wxDefaultPosition
);
36 void OnYes(wxCommandEvent
& event
);
37 void OnNo(wxCommandEvent
& event
);
38 void OnCancel(wxCommandEvent
& event
);
46 #if (!defined( __WXMSW__ ) && !defined( __WXMAC__) && !defined(__WXPM__)) || defined(__WXUNIVERSAL__)
47 #define wxMessageDialog wxGenericMessageDialog
50 #endif // __MSGDLGH_G__