]>
Commit | Line | Data |
---|---|---|
9b6dbb09 | 1 | ///////////////////////////////////////////////////////////////////////////// |
e5b50758 | 2 | // Name: wx/motif/msgdlg.h |
9b6dbb09 JS |
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 | |
65571936 | 10 | // Licence: wxWindows licence |
9b6dbb09 JS |
11 | ///////////////////////////////////////////////////////////////////////////// |
12 | ||
13 | #ifndef _WX_MSGBOXDLG_H_ | |
14 | #define _WX_MSGBOXDLG_H_ | |
15 | ||
9b6dbb09 JS |
16 | #include "wx/setup.h" |
17 | #include "wx/dialog.h" | |
18 | ||
ee31c392 VZ |
19 | // ---------------------------------------------------------------------------- |
20 | // Message box dialog | |
21 | // ---------------------------------------------------------------------------- | |
9b6dbb09 JS |
22 | |
23 | WXDLLEXPORT_DATA(extern const char*) wxMessageBoxCaptionStr; | |
24 | ||
e5b50758 | 25 | class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase |
9b6dbb09 | 26 | { |
ee31c392 | 27 | DECLARE_DYNAMIC_CLASS(wxMessageDialog) |
e5b50758 | 28 | |
ee31c392 VZ |
29 | public: |
30 | wxMessageDialog(wxWindow *parent, | |
83df96d6 JS |
31 | const wxString& message, |
32 | const wxString& caption = wxMessageBoxCaptionStr, | |
33 | long style = wxOK | wxCENTRE, | |
34 | const wxPoint& pos = wxDefaultPosition); | |
e5b50758 | 35 | |
ee31c392 | 36 | int ShowModal(); |
e5b50758 | 37 | |
ee31c392 | 38 | // implementation only from now on |
83df96d6 | 39 | // called by the Motif callback |
ee31c392 | 40 | void SetResult(long result) { m_result = result; } |
e5b50758 | 41 | |
9b6dbb09 JS |
42 | protected: |
43 | wxString m_caption; | |
44 | wxString m_message; | |
9b6dbb09 | 45 | wxWindow * m_parent; |
ee31c392 | 46 | long m_result; |
9b6dbb09 JS |
47 | }; |
48 | ||
9b6dbb09 | 49 | #endif |
83df96d6 | 50 | // _WX_MSGBOXDLG_H_ |