作业帮 > 英语 > 作业

英语翻译MSDN DrawText DT_CALCRECTDetermines the width and height

来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:英语作业 时间:2024/07/15 07:24:55
英语翻译
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返回格式化的高但是不会画这个文本.
英语翻译MSDN DrawText DT_CALCRECTDetermines the width and height
此函数决定矩形的宽和高.如果是多行文本,DrawText函数使用lpRect参数所指定的矩形的宽度,并且延伸矩形原来的高度让它可以包含文本的最后一行.如果文本是单行的,DrawText函数改变矩形的右边界让它可以包含这行的最后一个字符.无论是两种情况的任何一种,DrawText函数都会返回格式化的文本的高度,而不是去绘制此文本.
(改变右边框的宽度和伸缩它的宽度不是一个概念哦.return是返回值)
再问: 改变右边框的宽度和伸缩它的宽度不是一个概念哦。return是返回值 //伸缩它的宽度什么意思?
再答: 那是另一位同学的答案里面的。
再问: 伸缩它的宽度与改变右边框为啥不是一个概念
再答: 伸缩宽度一般是以中心点来左右对称做的,那么左边的坐标也会改。
再问: and extends the base of the rectangle to bound the last line of text 并且延伸矩形原来的高度让它可以包含文本的最后一行//高度与延伸单词在哪?
再答: extend 是延伸。延伸一个矩形,让它包括文本最后一行,那当然是向下延伸高度了。
再问: 上一句不是说的DrawText函数使用lpRect参数所指定的矩形的宽度//使用的宽度吗?
再答: 对啊,宽度不变,延伸高度啊
再问: the base of the rectangle to bound //句子这几句怎么不翻译进去呀?
再答: 翻了:原来的高度让它可以包含 the base of the rectangle 矩形原来的大小(因为宽度不变,所以直接用高度了) to bound 去包含 你hi我吧,问太多次要扣分。