![]() |
【转帖】number of menus
number of menus
how to find out number of menus when i run a sw applicatin on mycomputer thx, chris solidworks 2007 (office pro.) sp5.0 testing solidworks 2009 (pro) sp0.0 dell precision t3400 2 cpu (8500) 3.16 ghz, 3.25 gb of ram window xp pro sp2 nvidia fx 570 6.14.11.6262 i don't believe there is an api method for it. you might be able to dig into window handles (ugly if you ask me). if you're trying to get your add-in menu in the recommended position between tools and help, use 5 for the position. if there are other add-ins, they will stack up in order they are loaded. mike spens "automating solidworks using macros" leap frog leap pad x64 there is no api for menu position that is one thing many of the add-in developers complained about, including myself. but yes you can get the handle to the menu and then call a few win32 commands to determine what menus are there and their positions etc... but its a lot of work and the only thing that changes the position of the menus is other add-ins, as all standard menus stay in the same position. |
所有的时间均为北京时间。 现在的时间是 12:44 PM. |