16,551
社区成员
发帖
与我相关
我的任务
分享
BOOL CDlgTestDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
// TODO: Add your message handler code here and/or call default
switch(pWnd->GetDlgCtrlID())
{
case IDC_BUTTON1:
SetCursor(LoadCursor(::AfxGetInstanceHandle(),MAKEINTRESOURCE(IDC_CURSOR1)));
break;
default :
SetCursor(LoadCursor(::AfxGetInstanceHandle(),MAKEINTRESOURCE(IDC_CURSOR1)));
}
return TRUE;
//return CDialog::OnSetCursor(pWnd, nHitTest, message);
}