This can't be achieved in a simple way. It is possible to get a pointer to the edit or static control of the combo box. But with edit controls the vertical alignment can't be set and with static controls the
SS_CENTERIMAGE
style can't be changed after the control has been created.
So the control must be subclassed (see MSDN
How to subclass CListBox and CEdit inside of CComboBox [
^]).
For a static control, the derived class must set the
SS_CENTERIMAGE
style upon creation.
For an edit control you must create one that supports vertically centered display. Searching for "cedit vertical alignment" will give you solutions (e.g.
http://www.codeguru.com/cpp/v-s/devstudio_macros/textoperations/article.php/c8491/Vertical-Text-Centering-in-an-Edit-Control.htm[
^]).