|
-
Oct 8th, 2001, 02:49 PM
#1
Thread Starter
Addicted Member
DrawText - DT_CALCRECT
I'm using DrawText to output some text (duh!) to a PictureBox. But first, I call it using DT_CALCRECT so I can know the dimension of the text so I can center it, but this does not work very well, because for example, DrawText returns 13 as the height, but if I manually measure the height of the text in MSPaint, the height is 11.
BTW, I must center the text manually, i.e., without using centering parameters in DrawText.
Thanks in advance.
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
|