X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b64a7e24b3bc5f51bbe8569e46e691ca231ce57..e6efee0079933c3f9a78b0bf6d701b3a35730952:/include/wx/scrolwin.h?ds=sidebyside

diff --git a/include/wx/scrolwin.h b/include/wx/scrolwin.h
index c27b7fa830..485195577d 100644
--- a/include/wx/scrolwin.h
+++ b/include/wx/scrolwin.h
@@ -68,6 +68,10 @@ public:
     int GetScrollPageSize(int orient) const;
     void SetScrollPageSize(int orient, int pageSize);
 
+    // get the number of lines the window can scroll, 
+    // returns 0 if no scrollbars are there.
+    int GetScrollLines( int orient ) const;
+
     // Set the x, y scrolling increments.
     void SetScrollRate( int xstep, int ystep );
 
@@ -177,7 +181,7 @@ protected:
                                          : m_targetWindow->GetClientSize();
     }
 
-    void GetTargetSize(int *w, int *h)
+    void GetTargetSize(int *w, int *h) const
     {
         wxSize size = GetTargetSize();
         if ( w )