1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMessageDialog for GTK+2
4 // Author: Vaclav Slavik
8 // Copyright: (c) Vaclav Slavik, 2003
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "msgdlg.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 wxChar
*) wxMessageBoxCaptionStr
;
27 class WXDLLEXPORT wxMessageDialog
: public wxDialog
30 wxMessageDialog(wxWindow
*parent
, const wxString
& message
,
31 const wxString
& caption
= wxMessageBoxCaptionStr
,
32 long style
= wxOK
|wxCENTRE
,
33 const wxPoint
& pos
= wxDefaultPosition
);
36 virtual bool Show( bool show
= true ) { return false; };
39 // implement some base class methods to do nothing to avoid asserts and
40 // GTK warnings, since this is not a real wxDialog.
41 virtual void DoSetSize(int x
, int y
,
42 int width
, int height
,
43 int sizeFlags
= wxSIZE_AUTO
) {}
44 virtual void DoMoveWindow(int x
, int y
, int width
, int height
) {}
51 DECLARE_DYNAMIC_CLASS(wxMessageDialog
)