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

📄 subject_16728.htm

📁 一些关于vc的问答
💻 HTM
字号:
<p>
序号:16728 发表者:zxc 发表日期:2002-10-02 11:03:05
<br>主题:TextOut()函数问题!
<br>内容:我要在指定位置输出一字符串:<BR>TextOut((point.x+10),(point.y+10),cIndex);<BR> 其中,前两个参数为逻辑坐标,第三个参数为字符串!<BR>但出现错误:<BR>error C2660: 'TextOutA' : function does not take 3 parameters<BR>Error executing cl.exe.<BR>为什么?<BR>
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:阿鬼 回复日期:2002-10-02 11:08:26
<br>内容:CDC::TextOut <BR>virtual BOOL TextOut( int x, int y, LPCTSTR lpszString, int nCount );<BR>BOOL TextOut( int x, int y, const CString& str );<BR><BR>::TextOut<BR>BOOL TextOut(<BR>&nbsp;&nbsp;HDC hdc,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // handle to DC<BR>&nbsp;&nbsp;int nXStart,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // x-coordinate of starting position<BR>&nbsp;&nbsp;int nYStart,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // y-coordinate of starting position<BR>&nbsp;&nbsp;LPCTSTR lpString,&nbsp;&nbsp;// character string<BR>&nbsp;&nbsp;int cbString&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // number of characters<BR>);<BR><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>
<font color=red>答案被接受</font><br>回复者:理文 回复日期:2002-10-03 18:52:30
<br>内容:你需要指定CDC,比如:<BR>pDC-&gt;TextOut((point.x+10),(point.y+10),cIndex);<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 + -