I have a Menu with all sorts of Menu items, as you normally
would. Every MenuItem (button) has a caption and I'd like to change
that caption at runtime. On a normal button that isn't really a
problem, I just call
EDIT: I have tried using the CMenu::ModifyMenu however I have been unsuccessful. I don't know how to specify the button (element) to change. Also, I have doubts in the correctness of the way I pass the CString as an argument.
CString str = "Foo"; CMenu * pMenu = m_wndToolBar.GetMenu(); pMenu->ModifyMenu(1, MF_BYPOSITION | MF_STRING, 0 /*Don't know what to pass as nIDNewItem */, str);