几何尺寸与公差论坛

 找回密码
 注册
查看: 618|回复: 0

【转帖】number of menus

[复制链接]
发表于 2009-4-13 13:10:47 | 显示全部楼层 |阅读模式
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.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 08:46 , Processed in 0.034728 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表