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