[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Horizontal Scroll

Posted on 1998-06-18
3
Medium Priority
?
473 Views
Last Modified: 2012-05-04
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
0
Comment
Question by:wwalschaerts
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
gaohong earned 300 total points
ID: 1166137
You have to call controls's SetHorizontalExtent() member function, with extent set to be largest string extent.

Also uncheck "Disable No scroll"
0
 

Author Comment

by:wwalschaerts
ID: 1166138
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
 

Author Comment

by:wwalschaerts
ID: 1166139
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

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question