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

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.
ILGDRMAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DanRollinsCommented:
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
ILGDRMAuthor Commented:
This is fine but what we want is to restrict specific menu item in popup menu. Is there any way of doing this.
0
DanRollinsCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.