Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CListCtrl : move the VScrollBar if an Item is hidden ?

Status
Not open for further replies.

youssef

Programmer
Mar 13, 2001
96
BE
Hi,

I use a CListCtrl for displaying a list of sequences to do.
For example 10 Events.
If my ListCtrl is little I can't show the all events.

So, When I execute each Event, I want to show the Event played and the Next.


Best Regards
 
Use MyListCtrl.EnsureVisible(nIndex, true);

This will ensure that the item is in view and scroll the list if required.


HTH

William
Software Engineer
ICQ No. 56047340
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top