On Fri May 19 16:34:48 2023 +0000, Esme Povirk wrote:
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.
OK, I didn't recognize that sizes of the combo box and its controls aren't fixed after the initialization, they can be changed when drawing items. This is why I got buttons much higher than combo box when I try to set the same height for toolbar buttons from FILEDLG95_InitControls(). In v2, I try another approach which setting size of toolbar buttons from FILEDLG95_LOOKIN_DrawItem(). It looks much better now:
with 96 dpi:

with 192 dpi:

Thanks