1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/msgdlg.h
3 // Purpose: wxMessageDialog class. Use generic version if no
4 // platform-specific implementation.
5 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_MSGBOXDLG_H_
13 #define _WX_MSGBOXDLG_H_
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxMessageDialog
: public wxMessageDialogBase
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
)
31 virtual int ShowModal();
33 // implementation only from now on
34 // called by the Motif callback
35 void SetResult(long result
) { m_result
= result
; }
40 DECLARE_DYNAMIC_CLASS(wxMessageDialog
)
43 #endif // _WX_MSGBOXDLG_H_