index143.htm
来自「介绍了L C ö O S 2Ê 在TM S320VC5402 」· HTM 代码 · 共 29 行
HTM
29 行
<html>
<style type="text/css"><!--
.p9 { font-family: "宋体"; font-size: 9pt}a {text-transform: none; text-decoration: none;}
a:hover {text-decoration: underline; color: #FF0000;}
--></style>
<body background="../di2001.jpg">
<h3 align="center"><font COLOR="#AOAO99"></font></h3>
<table width="100%" border="1" cellspacing="1">
<tr><td><p align="center"><font color="#FF0000">如何改变默认的光标形状?</font></td></tr>
<tr><td><p>
</Br>
我试着将光标改变为其它的形状和颜色,但却没有变化.<Br>
</Br>
在对话框/窗口/你需要的地方加上对WM_SETCURSOR消息的处理.<Br>
</Br>
BOOL MyDialog::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)<Br>
{<Br>
// TODO: Add your message handler code here and/or call default<Br>
::SetCursor(AfxGetApp()->LoadCursor(IDC_MYCURSOR));<Br>
return TRUE;<Br>
//return CDialog::OnSetCursor(pWnd, nHitTest, message);<Br>
}<Br>
你没有成功的原因是因为窗口类光标风格不能为NULL.<Br>
</Br>
</Br>
</p></td></tr>
</table>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?