In design time, i've created a popup menu. This menu has several menu items on it. One of these menu items (PopupA) is marked as "Popup" in it's property pages, so it spawns a submenu. When PopupA is selected, a submenu is launched (which is also created at design time). I need to dynamically change the text of one of these submenu items. What I've done so far is add the following message map: ON_UPDATE_COMMAND_UI(ID_MY_MENU_ITEM, OnUpdateMyMenuItem). In this function (OnUpdateMyMenuItem), I change the menu item text.
PROBLEM IS, my function (OnUpdateMyMenuItem) never gets called. I've put a stop in there and ran in debug mode, and this function never gets called. Any thoughts?
FYI, the window in which I launch this menu is an openGL window.