]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/html/help/help.cpp
added new wxHF_ flags
[wxWidgets.git] / samples / html / help / help.cpp
index a150939d3fe02697303e4a4bf7e38af6258c9894..b437a9b3e0a1c0e8c577e70bec4f44c1f2ecf6c1 100644 (file)
    // `Main program' equivalent: the program execution "starts" here
    bool MyApp::OnInit()
    {
-       #if wxUSE_LIBPNG
-        wxImage::AddHandler(new wxPNGHandler);
-       #endif
-       #if wxUSE_LIBJPEG
-        wxImage::AddHandler(new wxJPEGHandler);
-       #endif
+      wxInitAllImageHandlers();
 
       SetVendorName("wxWindows");
       SetAppName("wxHTMLHelp");