+// A custom modeless dialog
+class MyModelessDialog : public wxDialog
+{
+public:
+ MyModelessDialog(wxWindow *parent);
+
+ void OnButton(wxCommandEvent& event);
+ void OnClose(wxCloseEvent& event);
+
+private:
+ DECLARE_EVENT_TABLE()
+};
+
+// A custom modal dialog
+class MyModalDialog : public wxDialog
+{
+public:
+ MyModalDialog(wxWindow *parent);
+
+ void OnButton(wxCommandEvent& event);
+
+private:
+ wxButton *m_btnFocused;
+ wxButton *m_btnDelete;
+
+ DECLARE_EVENT_TABLE()
+};
+