]> git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/msgdlg.h
renamed GlobalPtr to GlobalPtrLock
[wxWidgets.git] / include / wx / motif / msgdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
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
27 WXDLLEXPORT_DATA(extern const char*) wxMessageBoxCaptionStr;
28
29 class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase
30 {
31 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
32
33 public:
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
46 protected:
47 wxString m_caption;
48 wxString m_message;
49 wxWindow * m_parent;
50 long m_result;
51 };
52
53 #endif
54 // _WX_MSGBOXDLG_H_