Link to home
Start Free TrialLog in
Avatar of traott
traottFlag for United States of America

asked on

Adding Accelerator Keys to toolbars

How do I get Accelerator Keys such as Alt+F to bring up a drop-down button in a tool bar?  I have used the MapAccelerator fucntion in the CToolBarCtrl but that seems to do nothing, do I have to route a message from the main window to the toolbar?
ASKER CERTIFIED SOLUTION
Avatar of Tommy Hui
Tommy Hui

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of traott

ASKER

OK, I got that to work, but now when I try to bring up the menu for the drop down using TrackPopupMenu(...) it returns a bad status and the error I get says that the Popup menu is already active. It does not do this if I click on the button, and it is using the same code.  Do I have to deactivate it?  If so, how do I it?