Mouseover
C / C++ / MFC
4
Posts
4
Posters
0
Views
1
Watching
-
// ...somewhere in your control's class CPoint point; GetCursorPos(&point); CPoint clientPoint = point; ScreenToClient(&clientPoint); GetClientRect(&rectClient); if (rectClient.PtInRect(clientPoint)) { // mouse is over control ... }
Best wishes, Hans
[CodeProject Forum Guidelines] [How To Ask A Question] [My Articles]
-
May you can use TrackMouseEvent function and capturing WM_MOUSEHOVER (&WM_MOUSELEAVE).
If u can Dream... U can do it