]> git.saurik.com Git - wxWidgets.git/commitdiff
Allow wxGenericListCtrl to correctly handle Get/SetScrollPos [bug 1584099].
authorKevin Ollivier <kevino@theolliviers.com>
Fri, 1 Dec 2006 20:31:25 +0000 (20:31 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Fri, 1 Dec 2006 20:31:25 +0000 (20:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/listctrl.h
src/generic/listctrl.cpp

index 07cec7f0c84996483ad86882ce30370721d4debb..19e874c53e04e4de607560a194d9f55d625ec6f5 100644 (file)
@@ -183,6 +183,9 @@ public:
     virtual bool SetFont( const wxFont &font );
     virtual bool SetCursor( const wxCursor &cursor );
 
+    virtual int GetScrollPos(int orient) const;
+    virtual void SetScrollPos(int orient, int pos, bool refresh = true); 
+
 #if wxUSE_DRAG_AND_DROP
     virtual void SetDropTarget( wxDropTarget *dropTarget );
     virtual wxDropTarget *GetDropTarget() const;
index 152e4400369b8bb2485a13a768c18f988a6425ba..0b7905dcf39e0f5245a4ac89ebde317bd841553d 100644 (file)
@@ -5225,6 +5225,16 @@ wxColour wxGenericListCtrl::GetItemBackgroundColour( long item ) const
     return info.GetBackgroundColour();
 }
 
+int wxGenericListCtrl::GetScrollPos( int orient ) const
+{
+    return m_mainWin->GetScrollPos( orient );
+}
+
+void wxGenericListCtrl::SetScrollPos( int orient, int pos, bool refresh )
+{
+    m_mainWin->SetScrollPos( orient, pos, refresh );
+}
+
 void wxGenericListCtrl::SetItemFont( long item, const wxFont &f )
 {
     wxListItem info;