Click here to Skip to main content
15,918,275 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

The length of the string listed in my ComboBox dropdown list exceeds the width of my ComboBox. To fix this, I used CComboBox::SetDroppedWidth to increase the dropdown list width.

However, the dialog containing the ComboBox is located at the right side of my screen. At times, there are not enough screen area to display the dropdown list.

What I'm trying to do is have the ComboBox dropdown list expands to the left, instead of the normal expands to the right. This way, the dropdown list can display all the options in full, regardless of the ComboBox size. Any idea how I can achieve this?
Updated 31-Oct-11 21:35pm

1 solution

You may find SetHorizontalExtent()[^] can help you.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900