
Change popup menu captions at runtime (ModifyMenu)
There seems to be no problem in changing pulldown menu captions at
runtime, but popup menu captions refuse to, eg
AfxGetMainWnd()->GetMenu->ModifyMenu( 0, MF_POPUP | MF_STRING, ... ,
"test" );
MSDN states the 3rd parameter has to be a HMENU in this case
(GetMenu()->GetSubMenu(0)->m_hMenu) but this does not even match the
declaration of ModifyMenu() which requires an UINT and ends up in a
compile time error.
Anybody, any ideas?
Martin Koeck
---
spam prevention: please reply to forum only