shirazbj 发表于 2006-9-5 08:02:00

在menugroup里添加工具条的问题

如何判断某工具条已经被添加?

shirazbj 发表于 2006-9-5 11:29:00

<P>解决了!</P>
<P>&nbsp; FoundOld = 0<BR>&nbsp; Dim oldToolbar As AcadToolbar<BR>&nbsp; For Each oldToolbar In curmenugroup.Toolbars<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If oldToolbar.Name = "myToolBar" Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FoundOld = 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp; Next</P>
页: [1]
查看完整版本: 在menugroup里添加工具条的问题