]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/msgdlg.h
fix DLL export declaration (adv, not core)
[wxWidgets.git] / include / wx / motif / msgdlg.h
CommitLineData
9b6dbb09 1/////////////////////////////////////////////////////////////////////////////
e5b50758 2// Name: wx/motif/msgdlg.h
9b6dbb09
JS
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
65571936 10// Licence: wxWindows licence
9b6dbb09
JS
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef _WX_MSGBOXDLG_H_
14#define _WX_MSGBOXDLG_H_
15
b73e73f9 16#include "wx/defs.h"
9b6dbb09
JS
17#include "wx/dialog.h"
18
ee31c392
VZ
19// ----------------------------------------------------------------------------
20// Message box dialog
21// ----------------------------------------------------------------------------
9b6dbb09 22
63ec432b 23WXDLLEXPORT_DATA(extern const wxChar) wxMessageBoxCaptionStr[];
9b6dbb09 24
e5b50758 25class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase
9b6dbb09 26{
ee31c392 27 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
e5b50758 28
ee31c392
VZ
29public:
30 wxMessageDialog(wxWindow *parent,
83df96d6
JS
31 const wxString& message,
32 const wxString& caption = wxMessageBoxCaptionStr,
33 long style = wxOK | wxCENTRE,
34 const wxPoint& pos = wxDefaultPosition);
e5b50758 35
ee31c392 36 int ShowModal();
e5b50758 37
ee31c392 38 // implementation only from now on
83df96d6 39 // called by the Motif callback
ee31c392 40 void SetResult(long result) { m_result = result; }
e5b50758 41
9b6dbb09
JS
42protected:
43 wxString m_caption;
44 wxString m_message;
9b6dbb09 45 wxWindow * m_parent;
ee31c392 46 long m_result;
9b6dbb09
JS
47};
48
9b6dbb09 49#endif
83df96d6 50// _WX_MSGBOXDLG_H_