Solved

Horizontal Scroll

Posted on 1998-06-18
3
465 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
gaohong earned 100 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

729 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