Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Get the height of a CExtPopupMenuWnd Collapse All
Subject Author Date
Julien Garcia Nov 30, 2010 - 9:20 AM

Hello support,


Is there a way of knowing the height of a CExtPopupMenuWnd object, before calling the TrackPopupMenu function?


I want to know this size (or calculate it with iterating through items), in order to manually position/align the popup menu.


My CExtPopupMenuWnd contains items as well as separators, and is built from the UpdateFromMenu(...) function.


Thanks for any help!

Technical Support Nov 30, 2010 - 11:35 AM

The CExtPopupMenuWnd window always positions itself automatically. You only can specify the rectangular area which should
not be intersected with a popup menu (rcExclude parameter, CExtPopupMenuWnd::TrackPopupMenu() method) and the desired side relative to this rectangle where popup menu should appear (TPMX_ALIGN_*** flags).