]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/msgdlgg.h
wxTextFile::Type changed to ::wxTextFileType (portability)
[wxWidgets.git] / include / wx / generic / msgdlgg.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: msgdlgg.h
3// Purpose: Generic wxMessageDialog
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c)
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __MSGDLGH_G__
13#define __MSGDLGH_G__
14
15#ifdef __GNUG__
16#pragma interface "msgdlgg.h"
17#endif
18
19#include "wx/setup.h"
20#include "wx/dialog.h"
21
22// type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO
23// Returns wxYES/NO/OK/CANCEL
24
25WXDLLEXPORT_DATA(extern const char*) wxMessageBoxCaptionStr;
26
27class WXDLLEXPORT wxGenericMessageDialog: public wxDialog
28{
29DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog)
30protected:
31 long m_dialogStyle;
32public:
33 wxGenericMessageDialog(wxWindow *parent, const wxString& message, const wxString& caption = wxMessageBoxCaptionStr,
34 long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition);
35
36 void OnYes(wxCommandEvent& event);
37 void OnNo(wxCommandEvent& event);
38 void OnCancel(wxCommandEvent& event);
39
40DECLARE_EVENT_TABLE()
41};
42
2049ba38 43#ifndef __WXMSW__
c801d85f
KB
44#define wxMessageDialog wxGenericMessageDialog
45
46int wxMessageBox(const wxString& message, const wxString& caption = wxMessageBoxCaptionStr,
c67daf87 47 long style = wxOK|wxCENTRE, wxWindow *parent = (wxWindow *) NULL, int x = -1, int y = -1);
c801d85f
KB
48
49#endif
50
51#endif
52 // __MSGDLGH_G__