Thank you. Very helpful.
ReplyWorks great!
ReplyFirst of all, thanks a lot !!
about the fonts :
* to change the font after add all the strings, then ResetHExtent() must be called again. (GetTextExtent/GetTabbedTextExtent depends on the font)
* try using SetFont before add the strings (that is the ideal situation), or maybe write your own SetFont in order to call it at any time.
void CHScrollListBox::SetFont( CFont* pFont, BOOL bRedraw){
CListBox::SetFont( pFont );
ResetHExtent();
}
Thanks !
Arturo.-
Reply
That is a neat job! I am using XVT Library instead of MFC. Have a clue how I can make horizontal scrollbars appear using XVT? The library doesn't seem to have functions equivalent to SetHorizontalExtent....:(
Use the list box messages: LB_GETHORIZONTALEXTENT, etc.
ReplyOriginally posted by: Roku
It helps alot. You are the best!
Reply
Originally posted by: James Bond
Very useful.......good work.
Originally posted by: Ashish Shah
Thank You Very Much...
I almost wasted whole day in this problem...but its good to get this solution before going home!!!!!
Originally posted by: Skygod
Thanks for this fix! I was about to go really mad/crazy before I found this fine little hack!
"Respect to the man in the ice-cream van..."
Reply
Originally posted by: Claire
Apparently GetTabbedTextExtent() is not supported in
WinCE, but that was the only difference...
Thank you!!!
Originally posted by: Tatobrutto
Thank you.
Simple and pretty...I'd like it.
Reply