Click here to Skip to main content
Click here to Skip to main content
Alternatives (2)

How to Disable/Enable Copy/Cut/Paste/Delete options from mouse right click in windows using MFC

Hello,Using my MFC application, i have to disable Copy/Cut/Paste/Delete from the windows system, i was successful in disabling those while using keyboard shotcuts(Ctrl+C,Ctwhen trl+v,Ctrl+X,Ctrl+D) but i am struck for disabling the same on right click options,so that if the user try to do...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

25 Sep 2012  
Sergey Alexandrovich Kryukov
 
Don't do it. The reasonable users won't forgive such abuse. Better explain why do you think you would need it, to get better advice.—SA
3 Oct 2012  
Joan Murt
 
You are interested in Hooks:Global Windows Hooks[^]http://msdn.microsoft.com/en-us/library/windows/desktop/ms632589(v=vs.85).aspx[^]http://msdn.microsoft.com/en-us/library/windows/desktop/ms644990(v=vs.85).aspx[^]Be careful: what Sergey is telling you is more than correct.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Rocky_Bas

Malaysia Malaysia
No Biography provided

| | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 12 Oct 2012
Article Copyright 2012 by Rocky_Bas
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid