马上注册,结交更多同行朋友,交流,分享,学习。
您需要 登录 才可以下载或查看,没有帐号?注册
x
我想在insert和tools里面加一个solide子菜单,我做完insert后,直接复制再把insert改为tools,为什么只在insert里面挂上了,tools里面没有。代码如下:
NewAccess(CATCmdContainer,pCAAAfrGeoCreationMbr,First);
//---------------------------------
// Insert menu: new items to merge
//---------------------------------
NewAccess(CATCmdContainer,pCATAfrInsertMnu,CATAfrInsertMnu);
SetAccessChild(pCAAAfrGeoCreationMbr,pCATAfrInsertMnu);
//----------------------
// A separator
//----------------------
NewAccess(CATCmdSeparator,pCAAAfrGeoCreationInsertSep,CAAAfrGeoCreationInsertSep);
SetAccessChild(pCATAfrInsertMnu,pCAAAfrGeoCreationInsertSep);
//----------------------
// Solid Sub Menu
//----------------------
NewAccess(CATCmdContainer,pCAAAfrSolidEltSnu,CAAAfrSolidEltSnu);
SetAccessNext(pCAAAfrGeoCreationInsertSep,pCAAAfrSolidEltSnu);
NewAccess(CATCmdStarter,pCAAAfrMSolidCuboidStr,CAAAfrMSolidCuboidStr);
SetAccessChild(pCAAAfrSolidEltSnu,pCAAAfrMSolidCuboidStr);
SetAccessCommand(pCAAAfrMSolidCuboidStr,"CAAAfrCuboidHdr");
NewAccess(CATCmdStarter,pCAAAfrMSolidSphereStr,CAAAfrMSolidSphereStr);
SetAccessNext(pCAAAfrMSolidCuboidStr,pCAAAfrMSolidSphereStr);
SetAccessCommand(pCAAAfrMSolidSphereStr,"CAAAfrSphereHdr");
NewAccess(CATCmdContainer,pCATAfrToolsMnu,CATAfrToolsMnu);
SetAccessNext(pCATAfrInsertMnu,pCATAfrToolsMnu);
//----------------------
// A separator
//----------------------
NewAccess(CATCmdSeparator,pCAAAfrGeoCreationToolsSep,CAAAfrGeoCreationToolsSep);
SetAccessChild(pCATAfrToolsMnu,pCAAAfrGeoCreationToolsSep);
//----------------------
// Solid Sub Menu
//----------------------
NewAccess(CATCmdContainer,pCAAAfrSolidEltSnu,CAAAfrSolidEltSnu);
SetAccessNext(pCAAAfrGeoCreationToolsSep,pCAAAfrSolidEltSnu);
NewAccess(CATCmdStarter,pCAAAfrMSolidCuboidStr,CAAAfrMSolidCuboidStr);
SetAccessChild(pCAAAfrSolidEltSnu,pCAAAfrMSolidCuboidStr);
SetAccessCommand(pCAAAfrMSolidCuboidStr,"CAAAfrCuboidHdr");
NewAccess(CATCmdStarter,pCAAAfrMSolidSphereStr,CAAAfrMSolidSphereStr);
SetAccessNext(pCAAAfrMSolidCuboidStr,pCAAAfrMSolidSphereStr);
SetAccessCommand(pCAAAfrMSolidSphereStr,"CAAAfrSphereHdr");
|