]>
Commit | Line | Data |
---|---|---|
0dbd6262 SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: msgdlg.h | |
3 | // Purpose: wxMessageDialog class. Use generic version if no | |
4 | // platform-specific implementation. | |
a31a5f85 | 5 | // Author: Stefan Csomor |
0dbd6262 | 6 | // Modified by: |
a31a5f85 | 7 | // Created: 1998-01-01 |
0dbd6262 | 8 | // RCS-ID: $Id$ |
a31a5f85 | 9 | // Copyright: (c) Stefan Csomor |
e40298d5 | 10 | // Licence: wxWindows licence |
0dbd6262 SC |
11 | ///////////////////////////////////////////////////////////////////////////// |
12 | ||
13 | #ifndef _WX_MSGBOXDLG_H_ | |
14 | #define _WX_MSGBOXDLG_H_ | |
15 | ||
12028905 | 16 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
0dbd6262 SC |
17 | #pragma interface "msgdlg.h" |
18 | #endif | |
19 | ||
20 | #include "wx/setup.h" | |
21 | #include "wx/dialog.h" | |
22 | ||
23 | /* | |
24 | * Message box dialog | |
25 | */ | |
26 | ||
c4e41ce3 | 27 | WXDLLEXPORT_DATA(extern const wxChar*) wxMessageBoxCaptionStr; |
0dbd6262 SC |
28 | |
29 | class WXDLLEXPORT wxMessageDialog: public wxDialog | |
30 | { | |
f2af4afb GD |
31 | DECLARE_DYNAMIC_CLASS(wxMessageDialog) |
32 | ||
0dbd6262 SC |
33 | protected: |
34 | wxString m_caption; | |
35 | wxString m_message; | |
36 | long m_dialogStyle; | |
37 | wxWindow * m_parent; | |
38 | public: | |
f2af4afb GD |
39 | wxMessageDialog(wxWindow *parent, |
40 | const wxString& message, | |
41 | const wxString& caption = wxMessageBoxCaptionStr, | |
42 | long style = wxOK|wxCENTRE, | |
43 | const wxPoint& pos = wxDefaultPosition); | |
0dbd6262 SC |
44 | |
45 | int ShowModal(); | |
d45fb985 RR |
46 | |
47 | // not supported for message dialog, RR | |
f2af4afb GD |
48 | virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y), |
49 | int WXUNUSED(width), int WXUNUSED(height), | |
50 | int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {} | |
d45fb985 | 51 | |
0dbd6262 SC |
52 | }; |
53 | ||
0dbd6262 SC |
54 | #endif |
55 | // _WX_MSGBOXDLG_H_ |