Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

Passing cursor 'over' control - notify?

How can I catch cursor  passing 'over' a pushbutton and how can I determine cursor leaving the control? I guess, I should use WM_NOTIFY but how?
0
V245
Asked:
V245
  • 2
1 Solution
 
RONSLOWCommented:
Set BS_NOTIFY style and then respond to OnMouseMove

I have code that does this for changing cursor shape and for giving the flat look of an IE-style toolbar button (where borders appear as mouse moves over.

0
 
V245Author Commented:
I don't quite understand why BS_NOTIFY is necessary, nevertheless I wanted to get a general idea only and I've got it. Thanks for help!
0
 
RONSLOWCommented:
BS_NOTIFY lets the control respond to focus change and mouse move messages etc (I think).  Otherwise, you don't get to see them

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now