views:

81

answers:

2

Hi All,

I have an application that has a list of buttons and has customized tooltips. Whenever the mouse hovers through the buttons, the tooltips come out and is working fine. However, I want to hide the tooltips when the mouse cursor is outside the client area. How can I tell my application that the mouse is already out of the client area, when the mouse events I have are limited to the client area alone?

Thanks...

+2  A: 

You use TrackMouseEvent, this will send you a WM_MOUSELEAVE message when the mouse leaves your window.

John Knoeller
+1  A: 

Or use GetCapture(), that's what I always do.

Roel