Problem with Combobox with Horizontal Scroll bar in VC ++

N

Nishant

I have a combo box with a horizontal scroll bar.
(Used SetHorizontalExtent)

The dropdown with horizontal scroll bar works fine when I have more
items in the dropdown list. However when the number of items is less,
the horizontal scroll bar comes over the last item.

If there is only one item, I am not able to see that item because of
Horizontal scroll.

If there are two items , it is funny that the V Scroll also shows up.

Thanks in advance.
Nishant
 
S

Sumit Rajan

Nishant said:
I have a combo box with a horizontal scroll bar.
(Used SetHorizontalExtent)

The dropdown with horizontal scroll bar works fine when I have more
items in the dropdown list. However when the number of items is less,
the horizontal scroll bar comes over the last item.

If there is only one item, I am not able to see that item because of
Horizontal scroll.

If there are two items , it is funny that the V Scroll also shows up.

Thanks in advance.
Nishant

http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9
 
J

Jagadeesh VN

In that case, call SetHorizontalExtend( .. ) with 0, and use
SetDroppedWidth(...)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top