1 /////////////////////////////////////////////////////////////////////////////
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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
17 #pragma interface "msgdlg.h"
21 #include "wx/dialog.h"
23 // ----------------------------------------------------------------------------
25 // ----------------------------------------------------------------------------
27 WXDLLEXPORT_DATA(extern const char*) wxMessageBoxCaptionStr
;
29 class WXDLLEXPORT wxMessageDialog
: public wxDialog
31 DECLARE_DYNAMIC_CLASS(wxMessageDialog
)
34 wxMessageDialog(wxWindow
*parent
,
35 const wxString
& message
,
36 const wxString
& caption
= wxMessageBoxCaptionStr
,
37 long style
= wxOK
| wxCENTRE
,
38 const wxPoint
& pos
= wxDefaultPosition
);
42 // implementation only from now on
43 // called by the Motif callback
44 void SetResult(long result
) { m_result
= result
; }