?? index143.htm
字號:
<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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -