0
我已將一個菜單項添加到四元菜單。我怎樣才能禁用和啓用此菜單?使用3ds max禁用/啓用四元菜單項目sdk
IQuadMenuContext* pContext = (IQuadMenuContext*) GetCOREInterface()->GetMenuManager()->GetContext(kViewportQuad);
IMenu *pMenuInQuadMenu = NULL;
IQuadMenu *pQuadMenu = pContext->GetMenu(0);
pMenuInQuadMenu = pQuadMenu->GetMenu(0);
IMenuItem* pNewMenuItem = GetIMenuItem();
pNewMenuItem->SetActionItem(pAction);
pNewMenuItem->SetUseCustomTitle(true);
pNewMenuItem->SetTitle(L"Menu Item");
pMenuInQuadMenu->AddItem(pNewMenuItem,0);