我有HMENU和id,但是在更改了菜单项的文本后:
ModifyMenu(optionsMenu, ID_MENUITEM, MF_BYCOMMAND, ID_MENUITEM, wsBuf);
我无法设置勾选/取消选中
MENUITEMINFO uncheckItem;
uncheckItem.cbSize = sizeof(MENUITEMINFO);
uncheckItem.fMask = MIIM_STATE;
uncheckItem.fState = MFS_UNCHECKED;
SetMenuItemInfo(optionsMenu, ID_MENUITEM, FALSE, &uncheckItem);
任何想法?