+// Test harness for wxMessageDialog.
+class TestMessageBoxDialog : public wxDialog
+{
+public:
+ TestMessageBoxDialog(wxWindow *parent);
+
+private:
+ void OnApply(wxCommandEvent& event);
+ void OnClose(wxCommandEvent& event);
+ void OnUpdateLabelUI(wxUpdateUIEvent& event);
+ void OnUpdateNoDefaultUI(wxUpdateUIEvent& event);
+
+ enum
+ {
+ Btn_Yes,
+ Btn_No,
+ Btn_Ok,
+ Btn_Cancel,
+ Btn_Max
+ };
+
+ struct BtnInfo
+ {
+ int flag;
+ const char *name;
+ };
+
+ static const BtnInfo ms_btnInfo[Btn_Max];
+
+ wxTextCtrl *m_textMsg,
+ *m_textExtMsg;
+
+ wxCheckBox *m_buttons[Btn_Max];
+ wxTextCtrl *m_labels[Btn_Max];
+
+ wxRadioBox *m_icons;
+
+ wxCheckBox *m_chkNoDefault,
+ *m_chkCentre;
+
+ DECLARE_EVENT_TABLE()
+ DECLARE_NO_COPY_CLASS(TestMessageBoxDialog)
+};
+