Solved

Passing cursor 'over' control - notify?

Posted on 1998-05-10
3
206 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
ID: 1309054
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
ID: 1309055
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
ID: 1309056
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 49
mixString challenge 36 120
Window placement 17 81
fix34  challenge 9 116
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

805 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