-
January 20th, 2014, 08:19 AM
#13
Re: how auto size a control?
Originally Posted by Cambalinho
like you see the letter 'i' is very close to the border.. i can add more '+2', but i think that isn't correct in these way
I usually use GetTextMetrics to get the TEXTMETRIC data and then add (tmAveCharWidth / 2) to the width calculated with DratText or GetTextExtentPoint32.
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|