How to handle the Scroll Event in a CListCtrl
Posted on 2003-03-26
Im implementing an editable CListCtrl but i didnt go the subclassing route.
Mostly because im not confident ill be able to make the subclass work.
Heres what i did. I made a floating CEdit and made it float on top of the selected subitem.
Ive already done all the functionality including scrolling the list when the subitem is
barely visible. The problem now is the presence of the horizontal/vertical scrollbar.
When the floating CEdit is visible (is being edited) and the user moves the scrollbar, the
CEdit wont move with the underlying subitem. hehe. I dont know what event triggers when the scrollbar is being moved so i can adjust the position of the floating CEdit accordingly.
Is there a solution to this or do i really need to subclass the list control to handle the
OnHScroll or OnVScroll events?