Restrict Copy and Paste
-
1. Capture the Key Down/Mouse click event 2. Find if it's a Copy(Ctrl+C) action 3. return from the Key down handler if it's a Ctrl+C It would be good if you can elaborate on what is in that view
You talk about Being HUMAN. I have it in my name AnsHUMAN
-
The question is: what view? Is it MFC Cedit or CrichEdit derived view? Anyway, you do not have capture anything. Where is the word capture coming from? Windows sends messages that you choose to handle or not you do not have to set any traps to capture. Anyway, if this is MFC application it has menu items and possibly corresponding accelerator keys combination with the same ID. For example: ID_EDIT_PASTE has Ctrl-V or CTRL-Insert key combinations. If you want to completely disable copying pasting, insert do nothing (empty) handlers for those IDs, leave accelerators intact and remove appropriate menu items. If you want to disable editing under certain condition, use Update UI for those commands.
JohnCz