]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/png/pngdemo.cpp
Tools
[wxWidgets.git] / samples / png / pngdemo.cpp
index 520bb10fd10b2e3f7f883998647543259a42c1dc..0d88f11699226c48808d27b709e503b60085f0a7 100644 (file)
 #pragma hdrstop
 #endif
 
-#ifdef __WXMSW__
-#include "wx/pnghand.h"
-#endif
-#ifdef __WXGTK__
 #include "wx/image.h"
-#endif
 
 #include "pngdemo.h"
 
@@ -105,8 +100,9 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
 
 void MyFrame::OnSaveFile(wxCommandEvent& WXUNUSED(event))
 {
-  wxString f = wxFileSelector( "Save Image", (const char *)NULL, (const char *)NULL,
-                            "png", "PNG files (*.png)|*.png" );
+  wxString f = wxFileSelector( wxT("Save Image"), (const wxChar *)NULL,
+                               (const wxChar *)NULL,
+                               wxT("png"), wxT("PNG files (*.png)|*.png") );
 
   if (f == "")  return;
   
@@ -133,8 +129,9 @@ void MyFrame::OnSaveFile(wxCommandEvent& WXUNUSED(event))
 void MyFrame::OnLoadFile(wxCommandEvent& WXUNUSED(event))
 {
        // Show file selector.
-       wxString f = wxFileSelector("Open Image", (const char *) NULL, (const char *) NULL,"png",
-                 "PNG files (*.png)|*.png");
+       wxString f = wxFileSelector(wxT("Open Image"), (const wxChar *) NULL,
+                                    (const wxChar *) NULL, wxT("png"),
+                                    wxT("PNG files (*.png)|*.png"));
 
        if (f == "")
          return;