]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/msgdlg.h
wxMSWUniv wxWindowMSW vs. wxWindow fix.
[wxWidgets.git] / include / wx / gtk / msgdlg.h
CommitLineData
13a7abf9
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: msgdlg.h
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
65571936 9// Licence: wxWindows licence
13a7abf9
VS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __MSGDLG_H__
13#define __MSGDLG_H__
14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13a7abf9
VS
16#pragma interface "msgdlg.h"
17#endif
18
19#include "wx/setup.h"
20#include "wx/dialog.h"
21
22// type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO
23// Returns wxYES/NO/OK/CANCEL
24
25WXDLLEXPORT_DATA(extern const wxChar*) wxMessageBoxCaptionStr;
26
27class WXDLLEXPORT wxMessageDialog: public wxDialog
28{
29public:
30 wxMessageDialog(wxWindow *parent, const wxString& message,
31 const wxString& caption = wxMessageBoxCaptionStr,
32 long style = wxOK|wxCENTRE,
33 const wxPoint& pos = wxDefaultPosition);
f1dec25f 34 ~wxMessageDialog();
13a7abf9
VS
35
36 int ShowModal();
3db7220e 37 virtual bool Show( bool WXUNUSED(show) = true ) { return false; };
b2ce5e1b
RD
38
39protected:
40 // implement some base class methods to do nothing to avoid asserts and
41 // GTK warnings, since this is not a real wxDialog.
3db7220e
VZ
42 virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
43 int WXUNUSED(width), int WXUNUSED(height),
44 int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
45 virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y),
46 int WXUNUSED(width), int WXUNUSED(height)) {}
13a7abf9
VS
47
48private:
49 wxString m_caption;
50 wxString m_message;
51 long m_dialogStyle;
13a7abf9
VS
52
53 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
54};
55
56#endif