Hiding a command in the solution's context menu but not under the Project top-level menu RRS feed

  • Question

  • Hi,

    How can I remove "Add New Item..." from the context-menu but not from the Project top-level menu?

    Inside QueryStatus, is it possible to know that we have been called for the context-menu?

    In the VC++ project, if you open the context-menu on a C++ file item, the "Add New Item..." is not shown.  However, if you go to Project, you will see that "Add New Item..." is visible.

    How can I replicate this functionality?

    Thanks in advance,


    Wednesday, January 29, 2014 3:01 PM


  • Hi Martin,

    Please do the following:

    1. Right click on your Toolbar. Select "customize".

    2. Click "Commands".

    3. At last, you will see "Add New Item..." disappear from the context-menu.

    Best regards,


    • Marked as answer by Anna Cc Thursday, February 13, 2014 11:08 AM
    Thursday, January 30, 2014 3:25 AM