Posted on 2010-09-16
I am trying to use OnInitMenuPopup to dynamically modify my mainframe menus (File, Edit, etc) based on user settings in my application. However, I'm having a problem with DeleteMenu. It seems like once I remove a menu item using this command it is permanently gone - it doesn't show up the next time OnInitMenuPopup is called for that menu. I'd like to have my default menu as the starting point each time OnInitMenuPopup is called and then adjust the settings based on the current settings. Is there a good way to do this?