]> git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/msgdlg.h
Add new wxTreeListCtrl class.
[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 // ----------------------------------------------------------------------------
17 // Message box dialog
18 // ----------------------------------------------------------------------------
19
20 class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogBase
21 {
22 public:
23 wxMessageDialog(wxWindow *parent,
24 const wxString& message,
25 const wxString& caption = wxMessageBoxCaptionStr,
26 long style = wxOK | wxCENTRE,
27 const wxPoint& WXUNUSED(pos) = wxDefaultPosition)
28 : wxMessageDialogBase(parent, message, caption, style)
29 {
30 }
31
32 virtual int ShowModal();
33
34 // implementation only from now on
35 // called by the Motif callback
36 void SetResult(long result) { m_result = result; }
37
38 protected:
39 long m_result;
40
41 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
42 };
43
44 #endif // _WX_MSGBOXDLG_H_