📄 subject_16728.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> HDC hdc, // handle to DC<BR> int nXStart, // x-coordinate of starting position<BR> int nYStart, // y-coordinate of starting position<BR> LPCTSTR lpString, // character string<BR> int cbString // 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->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 + -