?
Solved

How to block right click menu (Context Menu) on MS-Office documents with VC++.

Posted on 2008-11-03
4
Medium Priority
?
402 Views
Last Modified: 2013-11-20
Hi,
I have a application which opens MS-Office documents (Word,Excel,PPT). While opening Word file OLE creates ~WRO0001.doc" file. When user right click on this file, it opens this file in WinWord with options available (e.g. New,Open,Edit).
I want to disable this right click menu (Context menu). Please let me know is there any way to block this context menu for Office applications (e.g. .doc files) i.e I dont want this file to open outside of my application.
0
Comment
Question by:ILGDRM
  • 2
3 Comments
 
LVL 49

Expert Comment

by:DanRollins
ID: 22990263
I cannot recommend it.
You are talking about changing the file association for such common files as MS Word documents and Excel spreadsheets as used in Windows Explorer.  Making such a change to a user's system would be unacceptable to most users (certainly to anybody I've ever met).
0
 

Author Comment

by:ILGDRM
ID: 23027264
This is fine but what we want is to restrict specific menu item in popup menu. Is there any way of doing this.
0
 
LVL 49

Accepted Solution

by:
DanRollins earned 1500 total points
ID: 23033020
Would blocking the context menu really even solve your problem?

For instance, couldn't a person copy that file, give it a different name, and then open it using some other tool that understands the file layout?
Or he could even manually use the Ms Word command line:
     C:\Program Files\Microsoft Office\Office\winword c:\temp\~WRO0001.doc
... regardless of how you trapped or misdirected context-menu commands,
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Quickbooks hosting can do wonders to your enterprise but considering the points elaborated in the article which will help you to better analyze the outcomes. So scan your business, its needs and then move to the new world of limitless benefits.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

830 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