0

I want to add a menu button to a CMFCToolbar that allow checking multiple options at a time, when I add a menu and check an item on click the menu is closed I need a menu like the menu in the customization button as in the following image enter image description here

ahmedsafan86
  • 1,776
  • 1
  • 26
  • 49

1 Answers1

0

First, I would suggest you look for a different design. What you're proposing is non-standard behavior. Menus don't usually act that way. Second, how would the menu close when the selections are complete? Now, having said that, if you feel you need to pursue that design, I would recommend you look to handle CMFCToolBarMenuButton::OpenPopupMenu and derive your own menu from CMFCPopupMenu. A CMFCPopupMenu is actually a mini frame window at the lower level. You should be able to provide the behavior you want within your derived popup menu class.

rrirower
  • 4,338
  • 4
  • 27
  • 45