|
-
Jul 3rd, 2001, 05:02 PM
#1
Thread Starter
Hyperactive Member
Selected menus
How would I know if the cursor is over the top menu(head menu)?
Amon Ra
The Power of Learning.
-
Jul 3rd, 2001, 06:23 PM
#2
Guru
Try this:
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
Enjoy
-
Jul 4th, 2001, 09:26 PM
#3
Thread Starter
Hyperactive Member
i tried
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
Amon Ra
The Power of Learning.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|