March 28th, 2014, 05:31 AM
Combo box height problem when the "size of all items" is set bigger than 200%
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.
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!