How to determine the size of a string given a font

后端 未结 3 1099
再見小時候
再見小時候 2020-12-03 10:48

I have a small form that displays some progress information.
Very rarely I have to show a rather long message and I want to be able to resize this form when needed so th

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-03 11:30

    Back in the Win32 I was using the equivalent for VisualStyleRenderer::GetTextExtent function for this.

提交回复
热议问题