]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/msgdlg.h
More Motif stuff incl. beginnings of wxToolBar
[wxWidgets.git] / include / wx / motif / msgdlg.h
CommitLineData
9b6dbb09
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: msgdlg.h
3// Purpose: wxMessageDialog class. Use generic version if no
4// platform-specific implementation.
5// Author: Julian Smart
6// Modified by:
7// Created: 17/09/98
8// RCS-ID: $Id$
9// Copyright: (c) Julian Smart
10// Licence: wxWindows licence
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef _WX_MSGBOXDLG_H_
14#define _WX_MSGBOXDLG_H_
15
16#ifdef __GNUG__
17#pragma interface "msgdlg.h"
18#endif
19
20#include "wx/setup.h"
21#include "wx/dialog.h"
22
23/*
24 * Message box dialog
25 */
26
27WXDLLEXPORT_DATA(extern const char*) wxMessageBoxCaptionStr;
28
29class WXDLLEXPORT wxMessageDialog: public wxDialog
30{
31DECLARE_DYNAMIC_CLASS(wxMessageDialog)
32protected:
33 wxString m_caption;
34 wxString m_message;
35 long m_dialogStyle;
36 wxWindow * m_parent;
37public:
38 wxMessageDialog(wxWindow *parent, const wxString& message, const wxString& caption = wxMessageBoxCaptionStr,
39 long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition);
40
41 int ShowModal();
42};
43
44
45int WXDLLEXPORT wxMessageBox(const wxString& message, const wxString& caption = wxMessageBoxCaptionStr,
46 long style = wxOK|wxCENTRE,
47 wxWindow *parent = NULL, int x = -1, int y = -1);
48
49#endif
50 // _WX_MSGBOXDLG_H_