]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/splitter/splitter.cpp
always call SetIcon() on the main frame of the sample; some small cleanup
[wxWidgets.git] / samples / splitter / splitter.cpp
index b95e2e75ed0f56c1ffd284320af1e9ea984d5aae..b57cb61979d8baf73386409da50a7275a8701902 100644 (file)
 #include "wx/splitter.h"
 #include "wx/dcmirror.h"
 
+#ifndef __WXMSW__
+    #include "../sample.xpm"
+#endif
+
 // ----------------------------------------------------------------------------
 // constants
 // ----------------------------------------------------------------------------
@@ -197,6 +201,8 @@ MyFrame::MyFrame()
                  wxDefaultPosition, wxSize(420, 300),
                  wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE)
 {
+    SetIcon(wxICON(sample));
+
 #if wxUSE_STATUSBAR
     CreateStatusBar(2);
 #endif // wxUSE_STATUSBAR