X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/197ab43d72571ecfd86c35f1832f063237775648..23a9a87c85d4e08cd96ab6ab95db64efe46a972f:/samples/html/virtual/virtual.cpp diff --git a/samples/html/virtual/virtual.cpp b/samples/html/virtual/virtual.cpp index 58310342a6..c22ce0ccfb 100644 --- a/samples/html/virtual/virtual.cpp +++ b/samples/html/virtual/virtual.cpp @@ -169,10 +169,9 @@ bool MyApp::OnInit() MyFrame *frame = new MyFrame(_("wxHtmlWindow testing application"), wxDefaultPosition, wxSize(640, 480)); - // Show it and tell the application that it's our main window - // @@@ what does it do exactly, in fact? is it necessary here? + // Show it frame->Show(true); - SetTopWindow(frame); + wxFileSystem::AddHandler(new MyVFS); // success: wxApp::OnRun() will be called which will enter the main message