Is there something similar to WM_MOUSEENTER WM_MOUSELEAVE?

I want to know when the mouse enters and leaves the client area of a control. I looked at TrackMouseEvent() and it appears to do what I want but I have to keep calling it repeatedly for every control. Are there any other mouse messages I can use? My controls are subclassed and I want to set a border around them when the mouse is over them.
Last edited on
WM_MOUSELEAVE is pretty similar to WM_MOUSELEAVE
https://msdn.microsoft.com/en-us/library/windows/desktop/ms645615%28v=vs.85%29.aspx

But there is no WM_MOUSEENTER; when the mouse enters you'll start getting WM_MOUSEMOVE messages.

Andy

Why is there no WM_MOUSEENTER message?
http://blogs.msdn.com/b/oldnewthing/archive/2003/10/13/55279.aspx
@andywestken
WM_MOUSELEAVE is pretty similar to WM_MOUSELEAVE
Um, what?


@RaduV
Maybe one of the WM_NC... message:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms645627%28v=vs.85%29.aspx
Thanks both of you. Apparently I misunderstood the use of TrackMouseEvent. I only have to call it once in the WM_MOUSEMOVE handler as that exampled showed.
Topic archived. No new replies allowed.