1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/msgdlg.h
3 // Purpose: wxMessageDialog for GTK+2
4 // Author: Vaclav Slavik
7 // Copyright: (c) Vaclav Slavik, 2003
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/dialog.h"
17 // type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO
18 // Returns wxYES/NO/OK/CANCEL
20 extern WXDLLIMPEXP_DATA_CORE(const wxChar
) wxMessageBoxCaptionStr
[];
22 class WXDLLIMPEXP_CORE wxMessageDialog
: public wxDialog
, public wxMessageDialogBase
25 wxMessageDialog(wxWindow
*parent
, const wxString
& message
,
26 const wxString
& caption
= wxMessageBoxCaptionStr
,
27 long style
= wxOK
|wxCENTRE
,
28 const wxPoint
& pos
= wxDefaultPosition
);
29 virtual ~wxMessageDialog();
32 virtual bool Show( bool WXUNUSED(show
) = true ) { return false; }
35 // implement some base class methods to do nothing to avoid asserts and
36 // GTK warnings, since this is not a real wxDialog.
37 virtual void DoSetSize(int WXUNUSED(x
), int WXUNUSED(y
),
38 int WXUNUSED(width
), int WXUNUSED(height
),
39 int WXUNUSED(sizeFlags
) = wxSIZE_AUTO
) {}
40 virtual void DoMoveWindow(int WXUNUSED(x
), int WXUNUSED(y
),
41 int WXUNUSED(width
), int WXUNUSED(height
)) {}
47 DECLARE_DYNAMIC_CLASS(wxMessageDialog
)