| |

VerySource

 Forgot password?
 Register
Search
View: 782|Reply: 3

SetclassLong

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-18 16:20:01
| Show all posts |Read mode
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.
Reply

Use magic Report

0

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-2-1 19:18:01
| Show all posts
This may need to be redrawn. You can try it by adding an Invalidate ()
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-4-5 23:00:01
| Show all posts
TO:renrugang
I tried it, no.
Reply

Use magic Report

0

Threads

30

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-7-21 21:45:01
| Show all posts
Try to send a WM_SETCURSOR manually after SetClassLong
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list