by kiat (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating:
(10 Votes)
On listview mouse down event, a textbox is moved to the selected listview item or subitem to be used as the edit box. The trick is to track the scroll bars to deduce which item of the listview is being clicked on. This is done by subclassing listview scroll events and retrieving the scroll bars info with API.