1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/msgdlg.h
3 // Purpose: wxMessageDialog class. Use generic version if no
4 // platform-specific implementation.
5 // Author: Julian Smart
9 // Copyright: (c) Julian Smart
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
13 #ifndef _WX_MSGBOXDLG_H_
14 #define _WX_MSGBOXDLG_H_
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 class WXDLLEXPORT wxMessageDialog
: public wxMessageDialogBase
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
)
32 virtual int ShowModal();
34 // implementation only from now on
35 // called by the Motif callback
36 void SetResult(long result
) { m_result
= result
; }
41 DECLARE_DYNAMIC_CLASS(wxMessageDialog
)
44 #endif // _WX_MSGBOXDLG_H_