|
void CStyleView::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
SetClassLong(m_hWnd,GCL_HCURSOR,(LONG)LoadCursor(::AfxGetInstanceHandle(),MAKEINTRESOURCE(IDC_CURSOR1)));
CView::OnLButtonDown(nFlags, point);
}
void CStyleView::OnLButtonUp(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
SetClassLong(m_hWnd,GCL_HCURSOR,(LONG)LoadCursor(::AfxGetInstanceHandle(),MAKEINTRESOURCE(IDC_CURSOR2)));
CView::OnLButtonUp(nFlags, point);
}
为什么我按下鼠标和放开鼠标左键,鼠标图形不立即改变而一定要移动一下,鼠标图形才能改变 |
|