BOOL CColorTestDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
// TODO: Add your message handler code here and/or call default
CPoint pos;
GetCursorPos(&pos);CRect rc;
GetDlgItem(IDC_STATIC_TEST)->GetWindowRect(&rc);if (rc.PtInRect(pos))
{
SetCursor(LoadCursor(NULL, IDC_HAND));
return true;
}
return CDialog::OnSetCursor(pWnd, nHitTest, message);
}
联系客服