You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imagine that you need to determine which window size you should use to contain a label, using current style, font, and for simplicity using no wrap. Label text is defined in runtime (e.g. by input or by setting locale). How would you do that?
In other words, is there any alternative to WinGDI's DrawText(text, &rect, DT_CALCRECT), which determines the width and height of the rectangle the text would occupy?
Thanks.
The text was updated successfully, but these errors were encountered:
Imagine that you need to determine which window size you should use to contain a label, using current style, font, and for simplicity using no wrap. Label text is defined in runtime (e.g. by input or by setting locale). How would you do that?
E.g.:
In other words, is there any alternative to WinGDI's
DrawText(text, &rect, DT_CALCRECT)
, which determines the width and height of the rectangle the text would occupy?Thanks.
The text was updated successfully, but these errors were encountered: