Solved

Passing cursor 'over' control - notify?

Posted on 1998-05-10
3
201 Views
Last Modified: 2013-11-20
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
Comment
Question by:V245
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
RONSLOW earned 100 total points
Comment Utility
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
 
LVL 1

Author Comment

by:V245
Comment Utility
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
 
LVL 10

Expert Comment

by:RONSLOW
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now