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
Asked
Active
Viewed 434 times
0

ahmedsafan86
- 1,776
- 1
- 26
- 49
-
It sounds like you want the menu to remain active (visible) after you've made a selection. Is that correct? – rrirower Mar 06 '14 at 13:26
-
@rrirower : yes that is what I want. to stay active after selection – ahmedsafan86 Mar 08 '14 at 07:26
1 Answers
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