]>
Commit | Line | Data |
---|---|---|
0e320a79 DW |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: msgdlg.h | |
3 | // Purpose: wxMessageDialog class. Use generic version if no | |
4 | // platform-specific implementation. | |
cdf1e714 | 5 | // Author: David Webster |
0e320a79 | 6 | // Modified by: |
cdf1e714 | 7 | // Created: 10/12/99 |
0e320a79 DW |
8 | // RCS-ID: $Id$ |
9 | // Copyright: (c) AUTHOR | |
cdf1e714 | 10 | // Licence: wxWindows licence |
0e320a79 DW |
11 | ///////////////////////////////////////////////////////////////////////////// |
12 | ||
13 | #ifndef _WX_MSGBOXDLG_H_ | |
14 | #define _WX_MSGBOXDLG_H_ | |
15 | ||
0e320a79 DW |
16 | #include "wx/setup.h" |
17 | #include "wx/dialog.h" | |
18 | ||
19 | /* | |
20 | * Message box dialog | |
21 | */ | |
22 | ||
23 | WXDLLEXPORT_DATA(extern const char*) wxMessageBoxCaptionStr; | |
24 | ||
25 | class WXDLLEXPORT wxMessageDialog: public wxDialog | |
26 | { | |
27 | DECLARE_DYNAMIC_CLASS(wxMessageDialog) | |
28 | protected: | |
29 | wxString m_caption; | |
30 | wxString m_message; | |
31 | long m_dialogStyle; | |
32 | wxWindow * m_parent; | |
33 | public: | |
34 | wxMessageDialog(wxWindow *parent, const wxString& message, const wxString& caption = wxMessageBoxCaptionStr, | |
35 | long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition); | |
36 | ||
37 | int ShowModal(); | |
38 | }; | |
39 | ||
40 | ||
41 | int WXDLLEXPORT wxMessageBox(const wxString& message, const wxString& caption = wxMessageBoxCaptionStr, | |
42 | long style = wxOK|wxCENTRE, | |
43 | wxWindow *parent = NULL, int x = -1, int y = -1); | |
44 | ||
45 | #endif | |
46 | // _WX_MSGBOXDLG_H_ |