OnSetCursor函数中,为什么光标没有改变符号?
程序想实现在鼠标移动到对话框边缘(这是一个none border对话框)时改变鼠标的形状,但不知道为什么,光标没有发生变化.
BOOL CScrollTextDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
// TODO: 在此添加消息处理程序代码和/或调用默认值
CPoint pt;
::GetCursorPos(&pt);
if (nHitTest == HTBORDER)
{
CString tmp;
tmp.Format("%d:%d", pt.x,pt.y);
m_lbContent.SetWindowText(tmp);
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_UPARROW));
}
return CDialog::OnSetCursor(pWnd, nHitTest, message);
}