]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/scroll/scroll.cpp
moving to a 10.4 compatible implementation
[wxWidgets.git] / samples / scroll / scroll.cpp
index 7c94906b62a0f462a60819bd113d79c846082feb..874783a1bbb4f179e4fbf1b5822686bcbe1703c8 100644 (file)
@@ -1240,7 +1240,7 @@ void MyAutoScrollingWindow::OnDraw(wxDC& dc)
     dc.SetPen(*wxTRANSPARENT_PEN);
     const wxString str = sm_testData;
     size_t strLength = str.length();
-    wxString::const_iterator str_i;
+    wxString::const_iterator str_i = str.begin();
 
     // draw the characters
     // 1. for each update region
@@ -1314,7 +1314,7 @@ void MyAutoScrollingWindow::OnMouseMove(wxMouseEvent& event)
         // set the new cursor position
         m_cursor = DeviceCoordsToGraphicalChars(event.GetPosition());
         // draw/erase selection
-        MyRefresh();
+        // MyRefresh();
         // capture mouse to activate auto-scrolling
         if (!HasCapture()) {
             CaptureMouse();