]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/msgdlg.h
[ 1557326 ] Remove redundant code from wxComboCtrl
[wxWidgets.git] / include / wx / mac / carbon / msgdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/carbon/msgdlg.h
3 // Purpose: wxMessageDialog class. Use generic version if no
4 // platform-specific implementation.
5 // Author: Stefan Csomor
6 // Modified by:
7 // Created: 1998-01-01
8 // RCS-ID: $Id$
9 // Copyright: (c) Stefan Csomor
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
12
13 #ifndef _WX_MSGBOXDLG_H_
14 #define _WX_MSGBOXDLG_H_
15
16 #include "wx/defs.h"
17 #include "wx/dialog.h"
18
19 /*
20 * Message box dialog
21 */
22
23 WXDLLEXPORT_DATA(extern const wxChar) wxMessageBoxCaptionStr[];
24
25 class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase
26 {
27 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
28
29 protected:
30 wxString m_caption;
31 wxString m_message;
32 wxWindow * m_parent;
33 public:
34 wxMessageDialog(wxWindow *parent,
35 const wxString& message,
36 const wxString& caption = wxMessageBoxCaptionStr,
37 long style = wxOK|wxCENTRE,
38 const wxPoint& pos = wxDefaultPosition);
39
40 int ShowModal();
41
42 protected:
43 // not supported for message dialog, RR
44 virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
45 int WXUNUSED(width), int WXUNUSED(height),
46 int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
47
48 };
49
50 #endif
51 // _WX_MSGBOXDLG_H_