当然可以啊。类似如下:
NewAccess(CATCmdContainer,pProjectManageTlb,ProjectManageTlb);
SetAccessChild(pChongCaiMold, pProjectManageTlb);//建立工具条
NewAccess(CATCmdContainer,pCAAAfrCY1Icb,CAAAfrCY1Icb);//工程
SetAccessChild(pProjectManageTlb,pCAAAfrCY1Icb);//建立一工具条项目
NewAccess(CATCmdStarter,pNew_Project,New_Project);
SetAccessCommand(pNew_Project,"mujunew");
SetAccessChild(pCAAAfrCY1Icb,pNew_Project);//设置弹出菜单项
NewAccess(CATCmdStarter,pOpen_Project,Open_Project);
SetAccessCommand(pOpen_Project,"mujuopen");
SetAccessNext(pNew_Project,pOpen_Project);
NewAccess(CATCmdStarter,pTask_Accomplish,Task_Accomplish);
SetAccessCommand(pTask_Accomplish,"mujuaccomplish");
SetAccessNext(pOpen_Project,pTask_Accomplish); |