diff --git a/samples/html/help/help.cpp b/samples/html/help/help.cpp index a150939d3f..b437a9b3e0 100644 --- a/samples/html/help/help.cpp +++ b/samples/html/help/help.cpp @@ -105,12 +105,7 @@ // `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");