]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/shaped/shaped.cpp
Use wxInitializer in wxEntryReal() instead of directly calling wxEntryStart() without...
[wxWidgets.git] / samples / shaped / shaped.cpp
index 9ebf3e697c74fb3ed4e4e02c047eb545a16172eb..6f93d5c8c11b14bcee4ade3b5e3eafdc64c741d1 100644 (file)
@@ -40,6 +40,9 @@
 #include "wx/dcclient.h"
 #include "wx/image.h"
 
+#ifndef __WXMSW__
+    #include "../sample.xpm"
+#endif
 
 // ----------------------------------------------------------------------------
 // constants
@@ -246,6 +249,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");
@@ -370,7 +375,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();