On Fri May 19 14:56:52 2023 +0000, Jactry Zeng wrote:
Hi Esme, Yes, in theory, we can (by "height = rectTB.bottom - rectTB.top"). It will look like this: ![Screenshot_from_2023-05-19_22-47-41](/uploads/2b117467455d4c293f6edfd2a2cff811/Screenshot_from_2023-05-19_22-47-41.png) The buttons on toolbar are much bigger than the button on the combo box, which looks not beautiful to my taste. :) But sure, this is mainly my personal preference.
I see, even at the default DPI, the toolbar window is significantly larger than the toolbar is visually. But the "Look in" label control is not as tall as the combo box (which sizes itself automatically, ignoring the height in the dialog template), and to me it doesn't seem to line up.
My suggestion would be to use GetComboBoxInfo to find the height of the combo box's drop-down arrow.