X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27607839f17cddae0f5b3b82b41dfd86f4192d82..fa699cbaaf217af186cd04dd10d6ec67c8667136:/samples/wrapsizer/wrapsizer.cpp diff --git a/samples/wrapsizer/wrapsizer.cpp b/samples/wrapsizer/wrapsizer.cpp index 86d95a25f6..ad2c6fc6bf 100644 --- a/samples/wrapsizer/wrapsizer.cpp +++ b/samples/wrapsizer/wrapsizer.cpp @@ -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