]>
Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: msgdlg.h | |
3 | // Purpose: wxMessageDialog class | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart and Markus Holzem | |
9 | // Licence: wxWindows license | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef __MSGBOXDLGH__ | |
13 | #define __MSGBOXDLGH__ | |
14 | ||
15 | #ifdef __GNUG__ | |
16 | #pragma interface "msgdlg.h" | |
17 | #endif | |
18 | ||
19 | #include "wx/setup.h" | |
20 | #include "wx/dialog.h" | |
21 | ||
22 | /* | |
23 | * Message box dialog | |
24 | */ | |
25 | ||
26 | WXDLLEXPORT_DATA(extern const char*) wxMessageBoxCaptionStr; | |
27 | ||
28 | class WXDLLEXPORT wxMessageDialog: public wxDialog | |
29 | { | |
30 | DECLARE_DYNAMIC_CLASS(wxMessageDialog) | |
31 | protected: | |
32 | wxString m_caption; | |
33 | wxString m_message; | |
34 | long m_dialogStyle; | |
35 | wxWindow * m_parent; | |
36 | public: | |
37 | wxMessageDialog(wxWindow *parent, const wxString& message, const wxString& caption = wxMessageBoxCaptionStr, | |
38 | long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition); | |
39 | ||
40 | int ShowModal(void); | |
41 | }; | |
42 | ||
43 | ||
44 | int WXDLLEXPORT wxMessageBox(const wxString& message, const wxString& caption = wxMessageBoxCaptionStr, | |
45 | const long style = wxOK|wxCENTRE, | |
46 | wxWindow *parent = NULL, const int x = -1, const int y = -1); | |
47 | ||
48 | #endif | |
49 | // __MSGBOXDLGH__ |