MS IDE RAD技术入门----VC6插件开发入门(3)----扩展IDE命令

6 篇文章 0 订阅
 
1.Open the add-in's project.
2.In ClassView, expand the project's classes.
3.Select the ICommands interface, and then click the right mouse button.
4.Click the Add Method command.
5.In the Method Declaration box, enter the method that specifies what the command is supposed to do.
6.In ClassView, expand the CCommands class, and then double-click the method name.
7.In the Commands.cpp file, write the code for the method.
8.In ClassView, expand the CDSAddIn class.
9.Double-click the OnConnection method.
Search for code that adds a command. This code calls the AddCommand method.
10.For the new command, copy and customize the AddCommand call.
 
 
11(可选向工具条上加按扭).Optionally, provide a toolbar button the user can press to carry out the command. If you used the Developer Studio Add-in Wizard and selected the Provides a toolbar option, then the wizard generated the code needed to provide a button. However, if you didn't select that option, you must add the necessary code. For details, see Creating Toolbar Buttons for Add-in Commands Programmatically.
12(可选向按扭上加图片).Optionally, create an image for the toolbar button. If you used the Developer Studio Add-in Wizard and selected the Provides a toolbar option, then the wizard automatically created an image for the button. For details, see Creating Images for Toolbar Buttons.
13.(可选新增快捷键)Optionally, assign a key sequence to the command. For details, see Assigning Key Sequences to Add-in Commands_Programmatically.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值