]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/wrapsizer/wrapsizer.cpp
Remove the unused code instead of commenting it out.
[wxWidgets.git] / samples / wrapsizer / wrapsizer.cpp
index 86d95a25f628b1c644520932bc8788f24f9c0a45..ad2c6fc6bf80858ca83981654fb36db90098db47 100644 (file)
@@ -21,7 +21,7 @@
 #include "wx/wrapsizer.h"
 #include "wx/artprov.h"
 
-#ifndef __WXMSW__
+#ifndef wxHAS_IMAGES_IN_RESOURCES
     #include "../sample.xpm"
 #endif
 
@@ -145,7 +145,7 @@ WrapSizerFrame::WrapSizerFrame()
     // OK Button
     sizerRoot->Add(new wxButton(m_panel, wxID_OK),
                     wxSizerFlags().Centre().DoubleBorder());
-    Connect(wxID_OK, wxEVT_COMMAND_BUTTON_CLICKED,
+    Connect(wxID_OK, wxEVT_BUTTON,
                 wxCommandEventHandler(WrapSizerFrame::OnButton));
 
     // Set sizer for the panel