Yes, that was a very helpful link. Except instead of ModifyMenu I used the newer SetMenuItemInfo function. Below is the code I used for the hilite/unhilite of a menu item with the caption "Start". This code works and goes a long way toward what I'm after. But how do I change the caption itself? I tried MF_STRING but couldn't get it to work. I may be close, but I'm stuck again. Thanks for your continued help and patience.
HMENU hmenubar;
MENUITEMINFO mii;
mii.cbSize = sizeof(MENUITEMINFO);
HWND hWnd = AfxGetMainWnd()->GetSafeHwnd();
hmenubar = GetMenu(hWnd);
mii.fMask = MIIM_STATE;
if (Start)
{ mii.fState = MFS_HILITE; } // hilite the "Start" button
else { mii.fState = MFS_UNHILITE; } // unhilite the "Start" button
SetMenuItemInfo(hmenubar, IDC_START, FALSE, &mii);
DrawMenuBar(hWnd);
:
Did you try this:
:
: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/menus/menureference/menufunctions/modifymenu.asp
: