Horizontal Scroll

Hello all,

I have defined a ListBox and checked 'Horizontal scroll' and 'Vertical scroll'. When the visible list area is full the vertical scrollbar automatically appears but if one of the lines is too long to be displayed, no horiz bar appears.
A have also tried to check 'Disable No scroll': In this case both bars appear, the vertical one is activeted but the horiz bar is still grey... inactivated.

Do have any tips or idea ?     (I am using VC++ 5.0)

Thanks a lot,
WW
wwalschaertsAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
gaohongConnect With a Mentor Commented:
You have to call controls's SetHorizontalExtent() member function, with extent set to be largest string extent.

Also uncheck "Disable No scroll"
0
 
wwalschaertsAuthor Commented:
Hmm doesn't work.
I don't have this function in my books. I got it into the inline help but there is no
instructions regarding the way to use it.
I have tried couple of things but I get messages like "SetHorizontalExtent' : is not a member of '`global namespace'' or  'SetHorizontalExtent' : undeclared identifier".
I can understand that because, in fact I don't know the way to specify I want the
function to set a specific lisbox only.

Do you have more details, or source example ?
Thanks,
William.

0
 
wwalschaertsAuthor Commented:
OK ! Forget my previous comment. I thought it was a function (stupid!) but
SetHorizontalExtent is of course a member of CListBox.
Working fine now.
Thanks.

0
All Courses

From novice to tech pro — start learning today.