HCURSOR hCursor[2];
hCurSor[0] = ::LoadCursor(...);
hCurSor[1] = ::LoadCursor(...);BOOL CMschartDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
// TODO: Add your message handler code here and/or call default
if (...)
{
::SetCursor(...);
}
else if (...)
{
::SetCursor(...);
}
...
//return CDialog::OnSetCursor(pWnd, nHitTest, message);
}最后别忘了释放装入的cursor
hCurSor[0] = ::LoadCursor(...);
hCurSor[1] = ::LoadCursor(...);BOOL CMschartDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
// TODO: Add your message handler code here and/or call default
if (...)
{
::SetCursor(...);
}
else if (...)
{
::SetCursor(...);
}
...
//return CDialog::OnSetCursor(pWnd, nHitTest, message);
}最后别忘了释放装入的cursor
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货