How to change the cursor to IDC_HAND only when the mouse is on a button ?
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
subclass the button, then handle the WM_SETCURSOR message for the button. You can set the cursor to the hand in that message. Or in your parent window you could simply handle the WM_SETCURSOR message, and if the cursor is over the rectangle where the button is located, you could set the hand icon.
-
subclass the button, then handle the WM_SETCURSOR message for the button. You can set the cursor to the hand in that message. Or in your parent window you could simply handle the WM_SETCURSOR message, and if the cursor is over the rectangle where the button is located, you could set the hand icon.