|
void CStyleView :: OnLButtonDown (UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and / or call default
Ranch
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);
}
Why do I press the mouse button and release the left mouse button, the mouse graphics do not change immediately, but I must move it to change the mouse graphics. |
|