]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/msgdlg.h
Correction for wxFileConfig where UNIX was taken
[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
ee31c392 10// Licence: wxWindows licence
9b6dbb09
JS
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
ee31c392
VZ
23// ----------------------------------------------------------------------------
24// Message box dialog
25// ----------------------------------------------------------------------------
9b6dbb09
JS
26
27WXDLLEXPORT_DATA(extern const char*) wxMessageBoxCaptionStr;
28
29class WXDLLEXPORT wxMessageDialog: public wxDialog
30{
ee31c392
VZ
31 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
32
33public:
34 wxMessageDialog(wxWindow *parent,
35 const wxString& message,
36 const wxString& caption = wxMessageBoxCaptionStr,
37 long style = wxOK | wxCENTRE,
38 const wxPoint& pos = wxDefaultPosition);
39
40 int ShowModal();
41
42 // implementation only from now on
43 // called by the Motif callback
44 void SetResult(long result) { m_result = result; }
45
9b6dbb09
JS
46protected:
47 wxString m_caption;
48 wxString m_message;
49 long m_dialogStyle;
50 wxWindow * m_parent;
ee31c392 51 long m_result;
9b6dbb09
JS
52};
53
54
ee31c392
VZ
55int WXDLLEXPORT wxMessageBox(const wxString& message,
56 const wxString& caption = wxMessageBoxCaptionStr,
57 long style = wxOK | wxCENTRE,
58 wxWindow *parent = NULL,
59 int x = -1, int y = -1);
9b6dbb09
JS
60
61#endif
62 // _WX_MSGBOXDLG_H_