如何改变光标
下面这段程序有错吗?????可是运行后看不到光标了,why??
BOOL CTesttestDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
// TODO: Add your message handler code here and/or call default
if (nHitTest == HTCLIENT )
{
HCURSOR a = ::SetCursor(AfxGetApp()->LoadCursor(IDC_WAIT));
int b = ShowCursor(TRUE);
return TRUE;
}
return CDialog::OnSetCursor(pWnd, nHitTest, message);
}