1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/msgdlg.h
3 // Purpose: wxMessageDialog for GTK+2
4 // Author: Vaclav Slavik
8 // Copyright: (c) Vaclav Slavik, 2003
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 WXDLLIMPEXP_DATA_CORE(const wxChar
) wxMessageBoxCaptionStr
[];
23 class WXDLLIMPEXP_CORE wxMessageDialog
: public wxDialog
, public wxMessageDialogBase
26 wxMessageDialog(wxWindow
*parent
, const wxString
& message
,
27 const wxString
& caption
= wxMessageBoxCaptionStr
,
28 long style
= wxOK
|wxCENTRE
,
29 const wxPoint
& pos
= wxDefaultPosition
);
30 virtual ~wxMessageDialog();
33 virtual bool Show( bool WXUNUSED(show
) = true ) { return false; };
36 // implement some base class methods to do nothing to avoid asserts and
37 // GTK warnings, since this is not a real wxDialog.
38 virtual void DoSetSize(int WXUNUSED(x
), int WXUNUSED(y
),
39 int WXUNUSED(width
), int WXUNUSED(height
),
40 int WXUNUSED(sizeFlags
) = wxSIZE_AUTO
) {}
41 virtual void DoMoveWindow(int WXUNUSED(x
), int WXUNUSED(y
),
42 int WXUNUSED(width
), int WXUNUSED(height
)) {}
48 DECLARE_DYNAMIC_CLASS(wxMessageDialog
)