]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/msgdlg.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / gtk1 / msgdlg.h
CommitLineData
13a7abf9 1/////////////////////////////////////////////////////////////////////////////
b73e73f9 2// Name: wx/gtk1/msgdlg.h
13a7abf9
VS
3// Purpose: wxMessageDialog for GTK+2
4// Author: Vaclav Slavik
5// Modified by:
6// Created: 2003/02/28
13a7abf9 7// Copyright: (c) Vaclav Slavik, 2003
e5b50758 8// Licence: wxWindows licence
13a7abf9
VS
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef __MSGDLG_H__
12#define __MSGDLG_H__
13
b73e73f9 14#include "wx/defs.h"
13a7abf9
VS
15#include "wx/dialog.h"
16
17// type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO
18// Returns wxYES/NO/OK/CANCEL
19
b8b9e48c 20extern WXDLLIMPEXP_DATA_CORE(const wxChar) wxMessageBoxCaptionStr[];
13a7abf9 21
53a2db12 22class WXDLLIMPEXP_CORE wxMessageDialog: public wxDialog, public wxMessageDialogBase
13a7abf9
VS
23{
24public:
25 wxMessageDialog(wxWindow *parent, const wxString& message,
26 const wxString& caption = wxMessageBoxCaptionStr,
27 long style = wxOK|wxCENTRE,
28 const wxPoint& pos = wxDefaultPosition);
d3c7fc99 29 virtual ~wxMessageDialog();
13a7abf9
VS
30
31 int ShowModal();
6dd0883d 32 virtual bool Show( bool WXUNUSED(show) = true ) { return false; }
b2ce5e1b
RD
33
34protected:
35 // implement some base class methods to do nothing to avoid asserts and
36 // GTK warnings, since this is not a real wxDialog.
3db7220e
VZ
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)) {}
13a7abf9
VS
42
43private:
44 wxString m_caption;
45 wxString m_message;
13a7abf9
VS
46
47 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
48};
49
50#endif