1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Generic wxMessageDialog
4 // Author: Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
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 WXDLLEXPORT_DATA(extern const char*) wxMessageBoxCaptionStr
;
27 class WXDLLEXPORT wxGenericMessageDialog
: public wxDialog
29 DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog
)
33 wxGenericMessageDialog(wxWindow
*parent
, const wxString
& message
, 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
);
44 #define wxMessageDialog wxGenericMessageDialog
46 int wxMessageBox(const wxString
& message
, const wxString
& caption
= wxMessageBoxCaptionStr
,
47 long style
= wxOK
|wxCENTRE
, wxWindow
*parent
= (wxWindow
*) NULL
, int x
= -1, int y
= -1);