|
-
January 16th, 2009, 01:00 PM
#1
how to align static to text
how can i adjust the width and height of that static control to fit the text inside?
its just one line adjust in the width
-
January 17th, 2009, 06:56 AM
#2
Re: how to align static to text
basicly i want to get the width of the text in my static control in pixels
-
January 17th, 2009, 09:24 PM
#3
Re: how to align static to text
Code:
RECT r;
DrawText(....."Hello Width",&r,DT_CALCRECT);
int iWidth = r.right - r.left;
http://msdn.microsoft.com/en-us/libr...09(VS.85).aspx
Best Wishes.
-David Delaune
Last edited by Randor; January 17th, 2009 at 09:54 PM.
-
January 18th, 2009, 06:56 AM
#4
Re: how to align static to text
thanks alot
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
|