1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMessageDialogEx
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
10 // This program is part of the eCos host tools.
12 // This program is free software; you can redistribute it and/or modify it
13 // under the terms of the GNU General Public License as published by the Free
14 // Software Foundation; either version 2 of the License, or (at your option)
17 // This program is distributed in the hope that it will be useful, but WITHOUT
18 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
22 // You should have received a copy of the GNU General Public License along with
23 // this program; if not, write to the Free Software Foundation, Inc.,
24 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 /////////////////////////////////////////////////////////////////////////////
28 #ifndef _WX_MSGDLGEX_H_
29 #define _WX_MSGDLGEX_H_
32 #pragma interface "msgdlgex.cpp"
35 #include "wx/dialog.h"
38 #define wxMD_OK 0x00000004
39 #define wxMD_YES_NO 0x00000008
40 #define wxMD_CANCEL 0x00000010
41 #define wxMD_YES 0x00000020
42 #define wxMD_NO 0x00000040
43 #define wxMD_HELP 0x00008000
45 #define wxMD_YESTOALL 0x00010000
46 #define wxMD_NOTOALL 0x00020000
47 #define wxMD_ABORT 0x00040000
48 #define wxMD_RETRY 0x00080000
49 #define wxMD_IGNORE 0x00100000
51 // Use same numbers as wxICON_... equivalents
52 #define wxMD_ICON_EXCLAMATION 0x00000100
53 #define wxMD_ICON_HAND 0x00000200
54 #define wxMD_ICON_WARNING wxICON_EXCLAMATION
55 #define wxMD_ICON_ERROR wxICON_HAND
56 #define wxMD_ICON_QUESTION 0x00000400
57 #define wxMD_ICON_INFORMATION 0x00000800
58 #define wxMD_ICON_STOP wxICON_HAND
59 #define wxMD_ICON_ASTERISK wxICON_INFORMATION
60 #define wxMD_ICON_MASK (0x00000100|0x00000200|0x00000400|0x00000800)
62 #define wxMD_NO_DEFAULT 0x00000080
63 #define wxMD_YES_DEFAULT 0x00200000
64 // OK and YES are equivalent
65 #define wxMD_OK_DEFAULT 0x00200000
66 #define wxMD_YESTOALL_DEFAULT 0x00400000
67 #define wxMD_NOTOALL_DEFAULT 0x00800000
68 #define wxMD_ABORT_DEFAULT 0x01000000
69 #define wxMD_RETRY_DEFAULT 0x02000000
70 #define wxMD_IGNORE_DEFAULT 0x04000000
73 #define wxID_YESTOALL 5113
74 #define wxID_NOTOALL 5114
75 #define wxID_ABORT 5115
76 #define wxID_RETRY 5116
77 #define wxID_IGNORE 5117
80 //----------------------------------------------------------------------------
82 //----------------------------------------------------------------------------
84 class wxMessageDialogEx: public wxDialog
87 // constructors and destructors
89 wxMessageDialogEx( wxWindow *parent, const wxString& message, const wxString& caption,
90 long style = wxOK|wxCANCEL,
91 const wxPoint& pos = wxDefaultPosition
93 virtual ~wxMessageDialogEx();
97 //void CreateControls(wxWindow* parent, long style);
98 wxSizer *CreateButtonSizer( long flags );
99 void OnCommand( wxCommandEvent &event );
104 DECLARE_CLASS(wxMessageDialogEx)
105 DECLARE_EVENT_TABLE()