]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/html/virtual/virtual.cpp
setting focus explicitely when using showmodal
[wxWidgets.git] / samples / html / virtual / virtual.cpp
index 75d9193dfbb2dd438b52f91570051b919c2b32f5..0260ba5514565354888a74fc55f457023459e9a9 100644 (file)
@@ -202,11 +202,15 @@ wxHtmlWindow *html;
     // ... and attach this menu bar to the frame
       SetMenuBar(menuBar);
    
+#if wxUSE_STATUSBAR
       CreateStatusBar(2);
+#endif // wxUSE_STATUSBAR
 
       html = new wxHtmlWindow(this);
       html -> SetRelatedFrame(this, _("VFS Demo: '%s'"));
+#if wxUSE_STATUSBAR
       html -> SetRelatedStatusBar(1);
+#endif // wxUSE_STATUSBAR
       html -> LoadPage(wxT("start.htm"));
    }