How do I ask a control/window, such as an edit box, static text, button, etc., what is its "best fit" size - like, the size that it would appear decent at.
Edit boxes, for example. How do I determine what height I should make them? Too tall, and there is a bunch of whitespace, too short, and the text in the box will get cut off. How do I determine this magic height at which an edit box will look normal?