Compute the preferred size from the text extent.
The control's current font is selected into its device context and the UTF-16 form of the stored text is measured with GetTextExtentPoint32W. A small height floor keeps short or empty labels from collapsing.
See Implementation
Compute the preferred size from the text extent.
The control's current font is selected into its device context and the UTF-16 form of the stored text is measured with GetTextExtentPoint32W. A small height floor keeps short or empty labels from collapsing.