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.
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.