http://www.charlesandhudson.com/archives/hand-tools-list-important.jpgPPT_LOGO_4b
‹#›
Autodesk Confidential Information November 2009
美酒 – CUI 增强
局部菜单的自动加载/卸载
§把局部菜单存放位置写入注册表中 HKLM\<ProductRegRoot>\ApplicationInstallActions
§AutoCAD 会自动加载指定位置的菜单
§(用第二安装程序来解决Windows兼容性问题)
§
§http://through-the-interface.typepad.com/through_the_interface/2007/05/creating_a_part.html
§http://through-the-interface.typepad.com/through_the_interface/2006/11/loading_a_parti.html
§
给已有的类增加了文档说明
下面提到的是CUI得增强,本次我们只简要介绍一下基本内容。这个版本CUI的增强功能是实现可以方便的添加你应用程序的局部菜单The main CUI enhancement this year is a feature developed to help deploy partial menus for addin applications.

您的安装程序会创建一个ApplicationInstallActions 键,当您的应用程序安装后,每个用户第一次运行AutoCAD时,AutoCAD会自动加载您的局部菜单。

当你的程序卸载时,移除该注册项,AutoCAd会自动的卸载您的局部菜单



Your installer will create a key in the ApplicationInstallActions subkey of the AutoCAD HKLM registry hive. When AutoCAD is run by each user for the first time after your application installs, it will automatically load your partial menus.

Remove the registry entry when you uninstall, and AutoCAD will automatically unload your partial menus.

For Windows compliance, you’ll want to register a second-stage installer to copy your partial menus to the user’s roaming root director.