none
How to hide the default button ContextMenuFolder? RRS feed

  • Question

  • Hi buddies,

    I am using ribbon xml and want to show "Manage my test folders" button in ContextMenuFolder, when the user right mouse click on a folder in outlook 2010.

    I want to know how to hide other default system buttons in ContextMenuFolder .

    Besides i need this feature only work in my pst file. I.e. not change the buttons  in other pst file's ContextMenuFolder .

    Can anyone give me a hint or a solution?






    • Edited by 董建华 Thursday, March 13, 2014 6:50 AM
    Thursday, March 13, 2014 6:43 AM

Answers

  • As i right click on the folder, i tried  to convert the IRibbonControl.Context to mapifolder.

    In this way, i can get the store property from the mapifolder object.

    • Marked as answer by 董建华 Thursday, March 13, 2014 9:19 AM
    Thursday, March 13, 2014 9:19 AM

All replies

  • Hi team,

    I found that i could use getVisible to hide the default button in ContextMenuFolder .

    How can i set the getVisible to make the hidden setting only work in the specified pst file? Which object should cast IRibbonControl.Context to?

    I only want to hide the default buttons in first picture's pst.

    However the pst "administrator@ex2007.com" is also been changed.




    • Edited by 董建华 Thursday, March 13, 2014 9:02 AM
    Thursday, March 13, 2014 8:23 AM
  • As i right click on the folder, i tried  to convert the IRibbonControl.Context to mapifolder.

    In this way, i can get the store property from the mapifolder object.

    • Marked as answer by 董建华 Thursday, March 13, 2014 9:19 AM
    Thursday, March 13, 2014 9:19 AM