TrackMouseEvent
-
I am trying to use TrackMouseEvent with a button on a dialog box created using the Resource Editor. I have tried the various sample codes examples available here on this site and on the internet. I get some results, but not all. I keep coming up with references to subclassing the button in the literature, yet I do get WM_MOUSEMOVE & WM_MOUSELEAVE messages. When I try to subclass the button, I get an error which I interpret to mean that the button is already sub classed. Isn't the button automatically subclassed when you use the template generated by the Resource Editor? If not and the button has to be subclassed, how do I do this. Thanks, Barry
-
I am trying to use TrackMouseEvent with a button on a dialog box created using the Resource Editor. I have tried the various sample codes examples available here on this site and on the internet. I get some results, but not all. I keep coming up with references to subclassing the button in the literature, yet I do get WM_MOUSEMOVE & WM_MOUSELEAVE messages. When I try to subclass the button, I get an error which I interpret to mean that the button is already sub classed. Isn't the button automatically subclassed when you use the template generated by the Resource Editor? If not and the button has to be subclassed, how do I do this. Thanks, Barry
BarryPearlman wrote:
If not and the button has to be subclassed, how do I do this.
Subclassing Controls. Also check here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles