[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • 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

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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