X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eed04c9999d7929fad7d18fab4e8071b515f6aa7..6bc5b235351dfe17e321c8bf9a955a1f7e29999a:/samples/shaped/shaped.cpp diff --git a/samples/shaped/shaped.cpp b/samples/shaped/shaped.cpp index 9ebf3e697c..6e9a0d955c 100644 --- a/samples/shaped/shaped.cpp +++ b/samples/shaped/shaped.cpp @@ -40,6 +40,9 @@ #include "wx/dcclient.h" #include "wx/image.h" +#ifndef __WXMSW__ + #include "../sample.xpm" +#endif // ---------------------------------------------------------------------------- // constants @@ -178,6 +181,7 @@ private: { static const char *names[] = { + "none", "roll to left", "roll to right", "roll to top", @@ -246,6 +250,8 @@ MainFrame::MainFrame() : wxFrame(NULL, wxID_ANY, "wxWidgets Shaped Sample", wxDefaultPosition, wxSize(200, 100)) { + SetIcon(wxICON(sample)); + wxMenuBar * const mbar = new wxMenuBar; wxMenu * const menuFrames = new wxMenu; menuFrames->Append(Show_Shaped, "Show &shaped window\tCtrl-S"); @@ -341,7 +347,7 @@ void MainFrame::OnShowEffect(wxCommandEvent& event) return; } - new EffectFrame(this, eff,1000); + new EffectFrame(this, eff, 1000); } // ---------------------------------------------------------------------------- @@ -370,7 +376,7 @@ ShapedFrame::ShapedFrame(wxFrame *parent) ) { m_hasShape = false; - m_bmp = wxBitmap(_T("star.png"), wxBITMAP_TYPE_PNG); + m_bmp = wxBitmap(wxT("star.png"), wxBITMAP_TYPE_PNG); SetSize(wxSize(m_bmp.GetWidth(), m_bmp.GetHeight())); SetToolTip(wxT("Right-click to close")); SetWindowShape();