1
#ifndef GenericMessageBox_H
2
#define GenericMessageBox_H
5
////class GenericMessageBox
8
//// GenericMessageBox();
9
//// virtual ~GenericMessageBox();
14
#endif // GenericMessageBox_H
16
/////////////////////////////////////////////////////////////////////////////
17
// Name: wx/generic/msgdlgg.h
18
// Purpose: Generic wxMessageDialog
19
// Author: Julian Smart
22
// RCS-ID: $Id: msgdlgg.h 49765 2007-11-09 18:32:38Z DE $
23
// Copyright: (c) Julian Smart
24
// Licence: wxWindows licence
25
/////////////////////////////////////////////////////////////////////////////
27
#ifndef GenericMessageDialog_h
28
#define GenericMessageDialog_h
31
#include "scrollingdialog.h"
32
#include "wx/msgdlg.h"
33
#include "wx/generic/msgdlgg.h"
35
// type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO
36
// Returns wxYES/NO/OK/CANCEL
38
//-extern WXDLLEXPORT_DATA(const wxChar) wxMessageBoxCaptionStr[];
40
// ----------------------------------------------------------------------------
41
class GenericMessageDialog: public wxScrollingDialog, public wxMessageDialogBase
42
// ----------------------------------------------------------------------------
44
DECLARE_DYNAMIC_CLASS(GenericMessageDialog)
47
GenericMessageDialog(wxWindow *parent, const wxString& message,
48
const wxString& caption = wxMessageBoxCaptionStr,
49
long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition);
51
void OnYes(wxCommandEvent& event);
52
void OnNo(wxCommandEvent& event);
53
void OnCancel(wxCommandEvent& event);
59
// ----------------------------------------------------------------------------
60
// GenericMessageBox: the simplest way to use GenericMessageDialog
61
// ----------------------------------------------------------------------------
63
int GenericMessageBox(const wxString& message,
64
const wxString& caption = wxMessageBoxCaptionStr,
65
long style = wxOK | wxCENTRE,
66
wxWindow *parent = ::wxGetActiveWindow(),
67
int x = wxDefaultCoord, int y = wxDefaultCoord);
70
#endif // GenericMessageDialog.h