C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 03-10-2006, 08:11 PM   #1
Registered User
 
Join Date: Feb 2006
Posts: 3
How to active the scrollbar on ListBox manually ?

I have a listbox that can display 10 lines, but I add a string which is more than 10 lines.

How could I turn on the scrollbar of ListBox manually if I do not want to adjust height of listbox?



Thank you!
ralph23 is offline   Reply With Quote
Old 03-10-2006, 09:22 PM   #2
Yes, my avatar is stolen
 
anonytmouse's Avatar
 
Join Date: Dec 2002
Posts: 2,544
Just use the WS_VSCROLL style when you create the listbox.
anonytmouse is offline   Reply With Quote
Old 03-10-2006, 09:29 PM   #3
Registered User
 
Join Date: Feb 2006
Posts: 3
anonytmouse ,

I have used WS_VSCROLL.
There should be enough items to active scrollbar.
I just have one item on listbox, but the string of that item is too much.
Becuase of one item, the scrollbar did not active.
How can I active it?


Thank you!
ralph23 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
horizontal scrollbar in listbox umen242 Windows Programming 3 06-30-2009 08:40 AM
cant load dialog with listbox, help terracota Windows Programming 2 11-22-2004 07:11 PM
How to cast a ListBox item to an int for a switch statment? Swaine777 C++ Programming 8 09-26-2004 08:52 PM
Listbox control with horizontal scrollbar Ward Windows Programming 1 02-06-2002 10:35 AM
Getting FULL filename from listbox Garfield Windows Programming 8 01-27-2002 08:28 AM


All times are GMT -6. The time now is 01:41 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22