Results 1 to 2 of 2

Thread: DC's argh

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 1999
    Location
    Oak Park, IL, USA
    Posts
    43

    DC's argh

    This is beginning to get to me, so I come to you all for help. Hopefully someone will have some kind of answer.

    I have a DC, not an handle to a window, and I need to have a call like GetWindowRect().

    The basics are this, I have a menu, in the WM_DRAWITEM message handler, I get a DC and a RECT, the DC is the DC of the whole menu, the RECT is only the RECT for that specific item.

    I need to get the TOP and BOTTOM points of the whole menu (popup menu).

    Gregg

  2. #2
    Megatron
    Guest
    You could use the GetMenuItemCount() function to get the total number of menus, then just take the top-left coordinate from the first item, and the bottom-right coordinate for the last item, to get the rectangle where all items are held within.

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