What Uxtheme function I must use to get the default size of the minimize, Maximize and close buttons?

前端 未结 2 1305
我寻月下人不归
我寻月下人不归 2021-01-04 12:14

I\'m using the DrawThemeBackground function to draw some system elements on a canvas, And I need draw the title buttons of a form, the only part that i missed is how i can g

2条回答
  •  醉话见心
    2021-01-04 12:48

    I think SystemParametersInfo with SPI_GETNONCLIENTMETRICS is what you're looking for. I guess the minimize and maximize buttons use NONCLIENTMETRICS.iSmCaptionWidth while close uses iCaptionWidth to determine width.

提交回复
热议问题