⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_66174.htm

📁 vc
💻 HTM
字号:
<p>
序号:66174 发表者:dove 发表日期:2003-12-23 00:29:42
<br>主题:TextOut中的参数各代表什么意思?
<br>内容: pDC-&gt;TextOut(50,50,&#34;HelloMFC&#34;,10)
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:kobo 回复日期:2003-12-23 00:45:05
<br>内容:virtual BOOL TextOut( int x, int y, LPCTSTR lpszString, int nCount );<BR>Return Value<BR><BR>Nonzero if the function is successful; otherwise 0.<BR><BR>Parameters<BR><BR>x<BR><BR>Specifies the logical x-coordinate of the starting point of the text.<BR><BR>y<BR><BR>Specifies the logical y-coordinate of the starting point of the text.<BR><BR>lpszString<BR><BR>Points to the character string to be drawn.<BR><BR>nCount<BR><BR>Specifies the number of bytes in the string.<BR><BR><BR>在坐标为(x,y)处,输出nCount 个字符的字符串lpszString
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:dove 回复日期:2003-12-23 00:58:56
<br>内容:oh,谢谢!应该是这样的。那么下面的是什么?怎么样区分两者?<BR>原型:extern void TextOut(int x, int y, char *str, int mode);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;用法:#include &lt;system.h&gt;<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;功能:在屏幕上指定位置输出字符串<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;说明:outtextxy为指向TextOut的宏,用法相同。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;str所指向字符串可以为中文或英文。中文显示成16x16点阵,英文显示成8x16点阵。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mode决定往屏幕上写的方式,其值含义如下:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0:背景透明,点阵中为0的点不显示。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1:正常方式,即点阵中为0的点擦除,为1的点显示。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2:反显方式,即点阵中为1的点擦除,为0的点显示。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3:异或方式,即点阵中点的值和屏幕当前位置的值作异或后取值,为0则擦除,为1显示。
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:kobo 回复日期:2003-12-23 01:13:51
<br>内容:不好意思,我没见过,怎么我的msdn中没有啊?
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:dove 回复日期:2003-12-23 01:15:30
<br>内容:它好像使标注的库函数,但是我也不懂。你的上述的解释使正确的。谢谢你!
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:kobo 回复日期:2003-12-23 01:28:58
<br>内容:不用客气,互相学习!
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:林建华 回复日期:2003-12-23 11:40:20
<br>内容:装全了就有了
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -