]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/png/pngdemo.cpp
new wxMenu(Bar) dynamic menu(bar) management functions documented
[wxWidgets.git] / samples / png / pngdemo.cpp
index da50f96d5daa893d50e6738948bde2ee40836694..c3ef8185092926c22c9036d27387ff4d0dff9978 100644 (file)
 #endif
 
 #ifdef __WXMSW__
-#include <wx/pnghand.h>
-// #include <wx/xpmhand.h>
+#include "wx/pnghand.h"
+#endif
+#ifdef __WXGTK__
+#include "wx/image.h"
 #endif
 
 #include "pngdemo.h"
@@ -40,8 +42,9 @@ bool MyApp::OnInit(void)
 {
 #ifdef __WXMSW__
   wxBitmap::AddHandler(new wxPNGFileHandler);
-//  wxBitmap::AddHandler(new wxXPMFileHandler);
-//  wxBitmap::AddHandler(new wxXPMDataHandler);
+#endif
+#ifdef __WXGTK__
+  wxImage::AddHandler(new wxPNGHandler);
 #endif
 
   // Create the main frame window