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 | ||
12028905 | 16 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
9b6dbb09 JS |
17 | #pragma interface "msgdlg.h" |
18 | #endif | |
19 | ||
20 | #include "wx/setup.h" | |
21 | #include "wx/dialog.h" | |
22 | ||
ee31c392 VZ |
23 | // ---------------------------------------------------------------------------- |
24 | // Message box dialog | |
25 | // ---------------------------------------------------------------------------- | |
9b6dbb09 JS |
26 | |
27 | WXDLLEXPORT_DATA(extern const char*) wxMessageBoxCaptionStr; | |
28 | ||
e5b50758 | 29 | class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase |
9b6dbb09 | 30 | { |
ee31c392 | 31 | DECLARE_DYNAMIC_CLASS(wxMessageDialog) |
e5b50758 | 32 | |
ee31c392 VZ |
33 | public: |
34 | wxMessageDialog(wxWindow *parent, | |
83df96d6 JS |
35 | const wxString& message, |
36 | const wxString& caption = wxMessageBoxCaptionStr, | |
37 | long style = wxOK | wxCENTRE, | |
38 | const wxPoint& pos = wxDefaultPosition); | |
e5b50758 | 39 | |
ee31c392 | 40 | int ShowModal(); |
e5b50758 | 41 | |
ee31c392 | 42 | // implementation only from now on |
83df96d6 | 43 | // called by the Motif callback |
ee31c392 | 44 | void SetResult(long result) { m_result = result; } |
e5b50758 | 45 | |
9b6dbb09 JS |
46 | protected: |
47 | wxString m_caption; | |
48 | wxString m_message; | |
9b6dbb09 | 49 | wxWindow * m_parent; |
ee31c392 | 50 | long m_result; |
9b6dbb09 JS |
51 | }; |
52 | ||
9b6dbb09 | 53 | #endif |
83df96d6 | 54 | // _WX_MSGBOXDLG_H_ |