How would I know if the cursor is over the top menu(head menu)?
Printable View
How would I know if the cursor is over the top menu(head menu)?
Try this:
Enjoy :rolleyes:PHP Code:POINT pt;
HWND hWnd = /* (the hWnd of the window that contains the menu) */ ;
LONG lRes;
GetCursorPos(&pt);
lRes = SendMessage(hWnd, WM_NCHITTEST, NULL, POINTTOPOINTS(pt));
if(lRes == HTMENU)
// woo
i tried putting that in the drawitem message, but it does not draw my box right away, as soon as the mouse goes over the top menu. i tried in the WM_NCMOUSEMOVE, but it flicker the screen really fast. :( where should i put? or is there another solution?
Thanks
Alexis