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 Tech Support » CExtButton's menu Collapse All
Subject Author Date
Offer Har Feb 27, 2011 - 10:03 AM

Dear Support,


In order for a button to have a drop-down menu, I see that I need to use the MFC’s CMenu. Is there any way to use CExtPopupMenu object instead?


Thanks,


Ron.

Technical Support Feb 27, 2011 - 11:37 PM

Please create and use a CExtButtonderived class. Your class should implement the CExtButton::_IsMenuAvail() and CExtButton::_OnTrackPopup() virtual methods. The CExtButton::_IsMenuAvail() virtual methods returns a flag indicating whether your button displays a popup menu. Your method should return true. The CExtButton::_OnTrackPopup() virtual method should create and display a popup menu. You can use the source code of the original method as a sample.