]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/stc/stctest.cpp
do only what is necessary in SetScrollbars(), let the base class do the rest
[wxWidgets.git] / samples / stc / stctest.cpp
index 14db821fc551bba1faa0e622649fe8717a96ab5d..06889c1c7182e2dd995e63618dc6a0153df4e6d0 100644 (file)
@@ -39,6 +39,9 @@
 #include "edit.h"        // Edit module
 #include "prefs.h"       // Prefs
 
+#ifndef __WXMSW__
+    #include "../sample.xpm"
+#endif
 
 //----------------------------------------------------------------------------
 // resources
@@ -300,7 +303,9 @@ END_EVENT_TABLE ()
 
 AppFrame::AppFrame (const wxString &title)
         : wxFrame ((wxFrame *)NULL, wxID_ANY, title, wxDefaultPosition, wxSize(750,550),
-                    wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE) {
+                    wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE)
+{
+    SetIcon(wxICON(sample));
 
     // intitialize important variables
     m_edit = NULL;