]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/msgdlg.h
More OS/2 Updates
[wxWidgets.git] / include / wx / os2 / msgdlg.h
CommitLineData
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
23WXDLLEXPORT_DATA(extern const char*) wxMessageBoxCaptionStr;
24
f6bcfd97 25class WXDLLEXPORT wxMessageDialog : public wxDialog
0e320a79
DW
26{
27DECLARE_DYNAMIC_CLASS(wxMessageDialog)
0e320a79 28public:
f6bcfd97
BP
29 wxMessageDialog( wxWindow* pParent
30 ,const wxString& rsMessage
31 ,const wxString& rsCaption = wxMessageBoxCaptionStr
32 ,long lStyle = wxOK|wxCENTRE
33 ,const wxPoint& rPos = wxDefaultPosition
34 );
0e320a79 35
f6bcfd97 36 int ShowModal(void);
0e320a79 37
f6bcfd97
BP
38protected:
39 wxString m_sCaption;
40 wxString m_sMessage;
41 long m_lDialogStyle;
42 wxWindow* m_pParent;
43}; // end of CLASS wxMessageDialog
44
45
46int WXDLLEXPORT wxMessageBox( const wxString& rsMessage
47 ,const wxString& rsCaption = wxMessageBoxCaptionStr
48 ,long lStyle = wxOK|wxCENTRE
49 ,wxWindow* pParent = NULL
50 ,int nX = -1
51 ,int nY = -1
52 );
0e320a79
DW
53
54#endif
55 // _WX_MSGBOXDLG_H_