在尝试使用 InsertMenuItem 创建子菜单的菜单时:
MENUITEMINFO mii = { sizeof(MENUITEMINFO) };
mii.fMask = MIIM_SUBMENU | MIIM_STRING | MIIM_ID;
mii.wID = uCmdID++;
mii.hSubMenu = hSubmenu;
mii.dwTypeData = _T("Net&Work Drive Solution");
// InsertMenu ( hmenu, uMenuIndex, MF_BYPOSITION | MF_POPUP,
// (UINT_PTR) hSubmenu, _T("NetWork Drive Solution") );
InsertMenuItem ( hmenu, uMenuIndex, TRUE, &mii );
我收到错误 C2065:“MIIM_STRING”:未声明的标识符