I created a Combo box with the property of CBS_OWNERDRAWFIXED in order to center the text. Once I change the 'size of all items' in Display to 200% or bigger (high DPI), the text will be bigger than the combo box height and is clipped.

I've tried not to include CBS_OWNERDRAWFIXED. Without CBS_OWNERDRAWFIXED, the combo box's height is bigger than that with CBS_OWNERDRAWFIXED, so that the text won't be clipped. The combo box is resized well under different DPI settings.

Anybody knows if there is a solution? Thanks.