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?
Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.
Load and Save to file, Document-View interaction inside the SDI.
Continuing from the second article about sudoku.
Open the project in visual studio.
From the class view select CSudokuDoc and double click to open the header …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard.
The reason is the 'save box mode' in adobe reader X.
Many people think the protected Mode of adobe reader x is only to stop the write access.
But this fe…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210 (2 * 3 * 5 * 7) or 2310 (2 * 3 * 5 * 7 * 11).
The larger templa…