Auto Scroll
-
I have a list box, but I need it to auto scroll down, because everytime a message is posted, the box just stay where it is. I could have like 10 messages posted, but it would only show the first 5... Help me please, make it simple for me to understand I'm new to MFC. Thanks ALOT! Arun
-
I have a list box, but I need it to auto scroll down, because everytime a message is posted, the box just stay where it is. I could have like 10 messages posted, but it would only show the first 5... Help me please, make it simple for me to understand I'm new to MFC. Thanks ALOT! Arun
You may want to consider using a
CListCtrl
instead of aCListBox
. That way you could call itsEnsureVisible()
method to scroll a specific row into view. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com -
You may want to consider using a
CListCtrl
instead of aCListBox
. That way you could call itsEnsureVisible()
method to scroll a specific row into view. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com -
I have a list box, but I need it to auto scroll down, because everytime a message is posted, the box just stay where it is. I could have like 10 messages posted, but it would only show the first 5... Help me please, make it simple for me to understand I'm new to MFC. Thanks ALOT! Arun
Use
CListBox::SetTopIndex()
to scroll it. You can passGetItemCount()-1
to have it scroll as far down as possible. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- You cannot truly appreciate Dilbert unless you've read it in the original Klingon. -
Use
CListBox::SetTopIndex()
to scroll it. You can passGetItemCount()-1
to have it scroll as far down as possible. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- You cannot truly appreciate Dilbert unless you've read it in the original Klingon. -
I could only make it CListBox::SetTopIndex, without the (). And I couldn't even add the GetItemCount()-1 Even the CListBox::SetTopIndex didnt work... What do I do?
You can post your code for starters.... Bikram Singh
-
You can post your code for starters.... Bikram Singh