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

Posted on 2006-05-25
Last Modified: 2008-03-10
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.
Question by:payalpr2002
    LVL 49

    Expert Comment

    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

    Author Comment

    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.

    Accepted Solution

    Closed, 100 points refunded.
    Community Support Moderator

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Suggested Solutions

    The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
    In Easy String Encryption Using CryptoAPI in C++ ( I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now