]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/msgdlg.h
don't define WINVER as 0x0400 in configure, it's defined in the headers as 0x0600...
[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
7// RCS-ID: $Id$
8// Copyright: (c) Vaclav Slavik, 2003
e5b50758 9// Licence: wxWindows licence
13a7abf9
VS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __MSGDLG_H__
13#define __MSGDLG_H__
14
b73e73f9 15#include "wx/defs.h"
13a7abf9
VS
16#include "wx/dialog.h"
17
18// type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO
19// Returns wxYES/NO/OK/CANCEL
20
63ec432b 21WXDLLEXPORT_DATA(extern const wxChar) wxMessageBoxCaptionStr[];
13a7abf9 22
e5b50758 23class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase
13a7abf9
VS
24{
25public:
26 wxMessageDialog(wxWindow *parent, const wxString& message,
27 const wxString& caption = wxMessageBoxCaptionStr,
28 long style = wxOK|wxCENTRE,
29 const wxPoint& pos = wxDefaultPosition);
d3c7fc99 30 virtual ~wxMessageDialog();
13a7abf9
VS
31
32 int ShowModal();
3db7220e 33 virtual bool Show( bool WXUNUSED(show) = true ) { return false; };
b2ce5e1b
RD
34
35protected:
36 // implement some base class methods to do nothing to avoid asserts and
37 // GTK warnings, since this is not a real wxDialog.
3db7220e
VZ
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)) {}
13a7abf9
VS
43
44private:
45 wxString m_caption;
46 wxString m_message;
13a7abf9
VS
47
48 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
49};
50
51#endif