How to Set the Width of CCombo Box drop down

803 Views Asked by At

I am using a class that is the descendant of CCombo Box. How can I set the maximum allowable width of its drop down list?

What I concluded from internet surfing is that there is no such method in CCombo Box class. Someone please help me in this regard.

Thanks in advance.

1

There are 1 best solutions below

6
On

CComboBox::SetDroppedWidth:

Call this function to set the minimum allowable width, in pixels, of the list box of a combo box.

The function is supposed to send CB_SETDROPPEDWIDTH message to the control window.