Solved

Horizontal Scroll

Posted on 1998-06-18
3
457 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 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

  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 …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

770 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