Solved

Horizontal Scroll

Posted on 1998-06-18
3
456 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now