Results 1 to 3 of 3

Thread: Selected menus

  1. #1

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    Unhappy Selected menus

    How would I know if the cursor is over the top menu(head menu)?
    Amon Ra
    The Power of Learning.

  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    Try this:
    PHP Code:
    POINT pt;
    HWND hWnd /* (the hWnd of the window that contains the menu) */ ;
    LONG lRes;

    GetCursorPos(&pt);
    lRes SendMessage(hWndWM_NCHITTESTNULLPOINTTOPOINTS(pt));

    if(
    lRes == HTMENU)
        
    // woo 
    Enjoy

  3. #3

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    Unhappy 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
  •  



Click Here to Expand Forum to Full Width