-
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
-
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.