]>
Commit | Line | Data |
---|---|---|
9b6dbb09 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: msgdlg.h | |
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 | |
ee31c392 | 10 | // Licence: wxWindows licence |
9b6dbb09 JS |
11 | ///////////////////////////////////////////////////////////////////////////// |
12 | ||
13 | #ifndef _WX_MSGBOXDLG_H_ | |
14 | #define _WX_MSGBOXDLG_H_ | |
15 | ||
3399051e | 16 | #if defined(__GNUG__) && !defined(__APPLE__) |
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 | ||
29 | class WXDLLEXPORT wxMessageDialog: public wxDialog | |
30 | { | |
ee31c392 | 31 | DECLARE_DYNAMIC_CLASS(wxMessageDialog) |
83df96d6 | 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); | |
39 | ||
ee31c392 | 40 | int ShowModal(); |
83df96d6 | 41 | |
ee31c392 | 42 | // implementation only from now on |
83df96d6 | 43 | // called by the Motif callback |
ee31c392 | 44 | void SetResult(long result) { m_result = result; } |
83df96d6 | 45 | |
9b6dbb09 JS |
46 | protected: |
47 | wxString m_caption; | |
48 | wxString m_message; | |
49 | long m_dialogStyle; | |
50 | wxWindow * m_parent; | |
ee31c392 | 51 | long m_result; |
9b6dbb09 JS |
52 | }; |
53 | ||
9b6dbb09 | 54 | #endif |
83df96d6 | 55 | // _WX_MSGBOXDLG_H_ |