lundi 7 juin 2021

How to dynamically insert a menu on CMFCMenuBar?

There are already some menus on CMFCMenuBar, now I want to dynamically add a menu item to CMFCMenuBar and keep the original menu

I used m_wndMenuBar.CreateFromMenu(m_pXmlMenu->m_wndMainMenu); I found that the original menu would be deleted. How can I solve it?

Aucun commentaire:

Enregistrer un commentaire