英语翻译
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返回格式化的高但是不会画这个文本.
人气:380 ℃ 时间:2020-04-24 04:55:09
解答
此函数决定矩形的宽和高.如果是多行文本,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我吧,问太多次要扣分。
推荐
猜你喜欢
- 这条应用题怎么用比例解
- 运用事物的发展是前进性和曲折性的统一的原理说明应该如何认识我国社会主义现代化
- 把已经写好的三封信和三个信封装好,正好有一封信和信封一致的概率是多少?
- museum,go,let's,the,to,怎么连词成句
- 晏子板着脸,严厉地对被捆绑起来的烛邹.这句话表现出晏子和齐景公什么心理?
- what did you see there
- 选择合适的单词,并用适当形式填空.1,real 2,play 3,usual 4,member
- 英语翻译