|
-
May 10th, 1999, 03:49 AM
#1
Combo Box
Hi,
How do i add a horizontal scroll bar for a combo box.
This is very urgent.
Thanks,
Aparna.
-
May 10th, 1999, 06:12 AM
#2
Re: Combo Box
First set the style (in resource editor or in the Create call).
Then you need to call SetHorizontalExtent to tell the combobox how much you want to be able to scroll. (Have a look at GetTextExtent() to figure out the width of a string).
-
May 10th, 1999, 06:12 AM
#3
Re: Combo Box
Since, at design time, there seems to be no way to do this, you may have to derive a class from CComboBox and override its OnCreate and set the WS_HSCROLL style. Look for more explanation in the CComboBox::Create.
Hope this helps
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|