]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/wizard/wizard.cpp
Document that message box with wxYES_NO but without wxCANCEL can't be closed.
[wxWidgets.git] / samples / wizard / wizard.cpp
index 216324d25c1581b8ee2d3feb9f77bdb5237fda6f..1d9427753d9c76fcae640c9285ae02e44ff84b1c 100644 (file)
@@ -383,10 +383,12 @@ bool MyApp::OnInit()
 // ----------------------------------------------------------------------------
 
 MyWizard::MyWizard(wxFrame *frame, bool useSizer)
-        : wxWizard(frame,wxID_ANY,wxT("Absolutely Useless Wizard"),
-                   wxBitmap(wiztest_xpm),wxDefaultPosition,
-                   wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
 {
+    SetExtraStyle(wxWIZARD_EX_HELPBUTTON);
+
+    Create(frame,wxID_ANY,wxT("Absolutely Useless Wizard"),
+                   wxBitmap(wiztest_xpm),wxDefaultPosition,
+                   wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
     SetIcon(wxIcon(sample_xpm));
 
     // Allow the bitmap to be expanded to fit the page height