X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6bedf83deca4c1e73c0113572701ef52338a7b84..8366ae934aab9f835747b0c2e456231e8795fe78:/samples/html/test/test.cpp diff --git a/samples/html/test/test.cpp b/samples/html/test/test.cpp index 8b09f06aaa..0bbf21fd5f 100644 --- a/samples/html/test/test.cpp +++ b/samples/html/test/test.cpp @@ -21,10 +21,11 @@ #include #endif -#include -#include -#include -#include +#include "wx/image.h" +#include "wx/html/htmlwin.h" +#include "wx/html/htmlproc.h" +#include "wx/fs_inet.h" +#include "wx/filedlg.h" // ---------------------------------------------------------------------------- // private classes @@ -129,6 +130,8 @@ class BoldProcessor : public wxHtmlProcessor // `Main program' equivalent: the program execution "starts" here bool MyApp::OnInit() { + wxLog::AddTraceMask(wxT("strconv")); + wxInitAllImageHandlers(); #if wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS wxFileSystem::AddHandler(new wxInternetFSHandler); @@ -209,7 +212,7 @@ void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnPageOpen(wxCommandEvent& WXUNUSED(event)) { - wxString p = wxFileSelector("Open HTML document", "", "", "", "HTML files|*.htm"); + wxString p = wxFileSelector(wxT("Open HTML document"), wxT(""), wxT(""), wxT(""), wxT("HTML files|*.htm")); if (p != wxEmptyString) m_Html -> LoadPage(p); }