How to reduce the height of CComboBox control in MFC?

I am aware that with the SetItemHeight(...) function of the CComboBox class, one can increase the height of a combo box. But if one needs to reduce the height of a combo box, How to do this?

Thanks in advance.


Who is Participating?
mahesh1402Connect With a Mentor Commented:
You should be able to change the height using SetWindowPos / MoveWindow.

if you want to change the height of the listbox portion You may have to subclass individual windows of the CComboBox. After subclassing, change the height of the listbox portion. Following shows how to subclass:

HOWTO: Subclass CListBox and CEdit Inside of CComboBox ID: Q174667


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.