Locking out CTRL-C on an MFC OCX wrapped rich edit control.
Posted on 2004-04-23
I have written an OCX in MSV C++ Ver 6.00. This control wraps a standard rich edit control. My base class is cOleControl.
I want to disable the CTRL-C copy function so that information cannot be easily copied. The control is also read-only. I have tried numerous Onxxxx methods to dectect a character of ASCII 3 (ctrl-c) and not call the base class in this case. I also did a check on the message pump function and did not pass the message along if it was a WM_CHAR with a character of 3. I'm not that familiar with MFC, so I think I am lost. Does the MFC object receive windows event first or last? Any ideas on how to lock out ctrl-c in my case?