]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/generic/msgdlgg.h
addind nonowned window implementation
[wxWidgets.git] / include / wx / generic / msgdlgg.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/generic/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) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_GENERIC_MSGDLGG_H_
13#define _WX_GENERIC_MSGDLGG_H_
14
15class WXDLLEXPORT wxGenericMessageDialog : public wxMessageDialogBase
16{
17public:
18 wxGenericMessageDialog(wxWindow *parent,
19 const wxString& message,
20 const wxString& caption = wxMessageBoxCaptionStr,
21 long style = wxOK|wxCENTRE,
22 const wxPoint& pos = wxDefaultPosition);
23
24 virtual int ShowModal();
25
26protected:
27 void OnYes(wxCommandEvent& event);
28 void OnNo(wxCommandEvent& event);
29 void OnCancel(wxCommandEvent& event);
30
31private:
32 void DoCreateMsgdialog();
33
34 wxPoint m_pos;
35 bool m_created;
36
37 DECLARE_EVENT_TABLE()
38 DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog)
39};
40
41#endif // _WX_GENERIC_MSGDLGG_H_