此函數(shù)決定矩形的寬和高.如果是多行文本,DrawText函數(shù)使用lpRect參數(shù)所指定的矩形的寬度,并且延伸矩形原來(lái)的高度讓它可以包含文本的最后一行.如果文本是單行的,DrawText函數(shù)改變矩形的右邊界讓它可以包含這行的最后一個(gè)字符.無(wú)論是兩種情況的任何一種,DrawText函數(shù)都會(huì)返回格式化的文本的高度,而不是去繪制此文本.
(改變右邊框的寬度和伸縮它的寬度不是一個(gè)概念哦.return是返回值)改變右邊框的寬度和伸縮它的寬度不是一個(gè)概念哦。return是返回值//伸縮它的寬度什么意思?那是另一位同學(xué)的答案里面的。伸縮它的寬度與改變右邊框?yàn)樯恫皇且粋€(gè)概念伸縮寬度一般是以中心點(diǎn)來(lái)左右對(duì)稱(chēng)做的,那么左邊的坐標(biāo)也會(huì)改。and extends the base of the rectangle to bound the last line of text并且延伸矩形原來(lái)的高度讓它可以包含文本的最后一行//高度與延伸單詞在哪?extend 是延伸。延伸一個(gè)矩形,讓它包括文本最后一行,那當(dāng)然是向下延伸高度了。上一句不是說(shuō)的DrawText函數(shù)使用lpRect參數(shù)所指定的矩形的寬度//使用的寬度嗎?對(duì)啊,寬度不變,延伸高度啊the base of the rectangle to bound //句子這幾句怎么不翻譯進(jìn)去呀?翻了:原來(lái)的高度讓它可以包含the base of the rectangle 矩形原來(lái)的大?。ㄒ?yàn)閷挾炔蛔?,所以直接用高度了?to bound 去包含你hi我吧,問(wèn)太多次要扣分。
英語(yǔ)翻譯
英語(yǔ)翻譯
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.
規(guī)定矩形的高和寬.如果文本有多行線.DrawText使用矩形的寬指定這個(gè)矩形參數(shù)和延長(zhǎng)以這個(gè)矩形以基礎(chǔ)限制文本的最后一行.如果文本只有一行,DrawText修改這個(gè)矩形的右邊以便于在行限制最后字符.無(wú)論發(fā)生什么,這個(gè)DrawText返回格式化的高但是不會(huì)畫(huà)這個(gè)文本.
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.
規(guī)定矩形的高和寬.如果文本有多行線.DrawText使用矩形的寬指定這個(gè)矩形參數(shù)和延長(zhǎng)以這個(gè)矩形以基礎(chǔ)限制文本的最后一行.如果文本只有一行,DrawText修改這個(gè)矩形的右邊以便于在行限制最后字符.無(wú)論發(fā)生什么,這個(gè)DrawText返回格式化的高但是不會(huì)畫(huà)這個(gè)文本.
英語(yǔ)人氣:657 ℃時(shí)間:2020-04-24 04:55:09
優(yōu)質(zhì)解答
我來(lái)回答
類(lèi)似推薦
猜你喜歡
- 11噸等于多少KN
- 2當(dāng)m取何值時(shí),多項(xiàng)式x2-3mxy-3y2+3xy中不含xy項(xiàng)
- 3九年級(jí)英語(yǔ)首字母填空
- 4馬致遠(yuǎn)的《天凈沙秋思》與白樸的《天凈沙秋》有什么異同
- 5我要講課,愈快愈好,小妹初講,煩請(qǐng)各位大俠指教!(省90000
- 6一個(gè)數(shù)比X的3.7倍少3,求這個(gè)數(shù),用含有字母的式子表示是_.當(dāng)X=6時(shí),式子的值是_.
- 71molH2O中所含的氫原子數(shù)是多少
- 8地理商標(biāo)是什么?
- 9His classes are ( ) ( )fun .【漢語(yǔ):
- 10走之旁加個(gè)天是個(gè)什么字
- 11千奇百怪的鳥(niǎo),除了種樹(shù)鳥(niǎo),鐘鳥(niǎo),送奶鳥(niǎo),看門(mén)鳥(niǎo),禮鳥(niǎo),救命鳥(niǎo),還有什么奇怪的鳥(niǎo)?
- 12根據(jù)字義寫(xiě)成語(yǔ)