英语翻译MSDN DrawText DT_CALCRECTDetermines the width and height of the rectangle.If there are multiple lines of text,DrawText uses the width of the rectangle pointed to by the lpRect parameter and extends the base of the rectangle to bound the last line of text.If there is only one line of text,DrawText modifies the right side of the rectangle so that it bounds the last character in the line.In either case,DrawText returns the height of the formatted tex
问题描述:
英语翻译
MSDN DrawText
DT_CALCRECT
Determines the width and height of the rectangle.If there are multiple lines of text,DrawText uses the width of the rectangle pointed to by the lpRect parameter and extends the base of the rectangle to bound the last line of text.If there is only one line of text,DrawText modifies the right side of the rectangle so that it bounds the last character in the line.In either case,DrawText returns the height of the formatted text but does not draw the text.
规定矩形的高和宽.如果文本有多行线.DrawText使用矩形的宽指定这个矩形参数和延长以这个矩形以基础限制文本的最后一行.如果文本只有一行,DrawText修改这个矩形的右边以便于在行限制最后字符.无论发生什么,这个DrawText返回格式化的高但是不会画这个文本.
答