]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/msgdlgg.h
converted to 16 colors
[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
83a21afb 25WXDLLEXPORT_DATA(extern const wxChar*) wxMessageBoxCaptionStr;
c801d85f
KB
26
27class WXDLLEXPORT wxGenericMessageDialog: public wxDialog
28{
29DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog)
15b24b14 30
c801d85f 31public:
2179d579 32 wxGenericMessageDialog(wxWindow *parent, const wxString& message,
15b24b14 33 const wxString& caption = wxMessageBoxCaptionStr,
c801d85f
KB
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);
2179d579 39
15b24b14 40private:
15b24b14 41 int m_dialogStyle;
c801d85f
KB
42
43DECLARE_EVENT_TABLE()
44};
45
2179d579 46#if !defined( __WXMSW__ ) && !defined( __WXMAC__) && !defined(__WXPM__)
c801d85f
KB
47#define wxMessageDialog wxGenericMessageDialog
48
2179d579
DW
49int wxMessageBox( const wxString& message
50 ,const wxString& caption = wxMessageBoxCaptionStr
51 ,long style = wxOK|wxCENTRE
52 ,wxWindow *parent = (wxWindow *) NULL
53 ,int x = -1
54 ,int y = -1
55 );
c801d85f
KB
56
57#endif
58
59#endif
60 // __MSGDLGH_G__