Eric Fritzinger

I am trying to disable the highlighting of a button when the mouse hovers over it while still maintaining the same functionality of the mouse move event. My initial attempts have worked, but not as well as just shutting off hot-tracking.

Is there a style or property I can set to disable it

Thanks!
~Eric


Re: Visual C++ General How to disable hot tracking on a CButton control?

Sdi

Where's the hot-tracking behavior coming from Is this a button on a toolbar control (whose hot-tracking image list you control) or a CBitmapButton (whose images you also control) or something else





Re: Visual C++ General How to disable hot tracking on a CButton control?

Eric Fritzinger

Ah, my apologies on the confusion. It is a regular CButton that I've subclassed.




Re: Visual C++ General How to disable hot tracking on a CButton control?

Sdi

As far as I know, 'plain' CButton's don't have hot tracking. So I'll ask again: where is the hot-tracking behavior coming from What does the debugger say about WM_MOUSEMOVE and related mouse messages





Re: Visual C++ General How to disable hot tracking on a CButton control?

Eric Fritzinger

Sdi wrote:
What does the debugger say about WM_MOUSEMOVE and related mouse messages



What do you mean by that

I'm a newbie MFC programmer with only a month's worth of experience. All I know is that I have a form I made using the resource editor that has several buttons on it that I dragged from the toolbox. They highlight when I mouse over them. I'm just trying to stop the highlighting.

Thanks for your help.
~Eric




Re: Visual C++ General How to disable hot tracking on a CButton control?