Provide implementation for GetTopItem

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-09-17 01:05:56 +00:00
parent 00924b9de2
commit 965079dde9

View File

@@ -879,6 +879,8 @@ private:
DECLARE_DYNAMIC_CLASS(wxListMainWindow) DECLARE_DYNAMIC_CLASS(wxListMainWindow)
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
friend class wxGenericListCtrl;
}; };
// ============================================================================ // ============================================================================
@@ -4882,7 +4884,9 @@ void wxGenericListCtrl::SetTextColour(const wxColour& col)
long wxGenericListCtrl::GetTopItem() const long wxGenericListCtrl::GetTopItem() const
{ {
return 0; size_t top;
m_mainWin->GetVisibleLinesRange(&top, NULL);
return (long)top;
} }
long wxGenericListCtrl::GetNextItem( long item, int geom, int state ) const long wxGenericListCtrl::GetNextItem( long item, int geom, int state ) const