Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 602
  • Last Modified:

Add a menu to standard menu bar of VC++ editor to invoke an Add-in

I am learning Add-ins provided in VC++. I have very little knowledge about this topic.
I want to create a menu item in the standard menu bar of VC++ editor. On clicking of this menu item should invoke a existing Add-in.

Can anyone please help me on this?

Thanks in advance.
0
payalpr2002
Asked:
payalpr2002
1 Solution
 
DanRollinsCommented:
I don't know how to add an Add-in command, but here is how to add a Macro (perhaps the procedure is similar):

1) Right-click on the menubar.
2) Select Customize...
3) Click the menu (eg, View)
4) In the Customize dialog box, open the Category drop-down list
5) Select Macros
6) Now click on a macro name and drag it into the menu that you opened in step 3.  It will be inserted at the location where you drop it.

As for Add-in functionality, there is probably a way to invokre that functionality by a macro, so this would do the job.  As I said, I have no experience with add-ins, but it is possible that the commands they add end up in the "All Commands" list in that drop down from step 4.

-- Dan
0
 
payalpr2002Author Commented:
I think I have found the solution:
I will have to use an AddNamedCommand & AddControl functions and then expose the functionality in Add-in using Exec method.
0
 
CetusMODCommented:
Closed, 100 points refunded.
CetusMOD
Community Support Moderator
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now