]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/shaped/shaped.cpp
simplify ScrollTo()
[wxWidgets.git] / samples / shaped / shaped.cpp
index 9ebf3e697c74fb3ed4e4e02c047eb545a16172eb..4e828a41f887fc91d56da93904921a1ec45e6c80 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");