New Scroll Functions for CXTListCtrl |
Post Reply |
Author | |
jwhagen
Groupie Joined: 09 May 2003 Location: United States Status: Offline Points: 43 |
Post Options
Thanks(0)
Posted: 12 August 2003 at 8:03am |
I'm still working with my new program and the CListCtrl class. I have found a need to be able to scroll and position the List, hence the suggested additions below: // // Place in XTListCtrl.h // virtual void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); virtual void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); // //Place in XTListCtrl.cpp // void CXTListCtrlBase::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar){ m_pListCtrl->OnVScroll(nSBCode, nPos, pScrollBar); } void CXTListCtrlBase::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar){ m_pListCtrl->OnHScroll(nSBCode, nPos, pScrollBar); } Thanks! John Hagen |
|
kstowell
Admin Group Joined: 25 January 2003 Location: MIchigan, USA Status: Offline Points: 496 |
Post Options
Thanks(0)
|
Hi John, You should be able to just derive a class from CXTListCtrl and handle your OnScroll events there. I have attached a sample class to show how to do this. Cheers, Download: ZB1_TestListCtrl.zip |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |