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

📄 subject_38109.htm

📁 vc
💻 HTM
字号:
<p>
序号:38109 发表者:崔明亮 发表日期:2003-04-30 18:09:50
<br>主题:如何设置光标?
<br>内容:有如下代码:<BR>BOOL CTestDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;// TODO: 在此添加消息处理程序代码和/或调用默认值<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;::SetCursor(::LoadCursor(NULL, IDC_WAIT));<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;return CDialog::OnSetCursor(pWnd, nHitTest, message);<BR>}<BR>光标没有改变,如果改成这样,光标可以改变,达到预期效果<BR>BOOL CTestDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;// TODO: 在此添加消息处理程序代码和/或调用默认值<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;::SetCursor(::LoadCursor(NULL, IDC_WAIT));<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;return TRUE;<BR>}<BR>请问这是为什么?<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>
<font color=red>答案被接受</font><br>回复者:擎天柱 回复日期:2003-04-30 19:40:37
<br>内容:CDialog::OnSetCursor(pWnd, nHitTest, message);<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 + -