G
Guest
I have a problem with the RichTextBox Control.
I need to catch CUT and PASTE (on ctrl+X and Ctrl+V).
So I subclassed RichTextBox, and overrode WndProc looking for WM_PASTE and
WM_CUT (0x0302 and 0x0300).
But I don't get these messages on Ctrl+X or Ctrl+V.
If I subclass a TextBox, I catch the messages as expected, but not in a
RichTextBox.
I do get these messages if I call the Paste() and Cut() methods directly,
but not on the shortcut keys.
Does anyone know how to catch these?
I need to catch CUT and PASTE (on ctrl+X and Ctrl+V).
So I subclassed RichTextBox, and overrode WndProc looking for WM_PASTE and
WM_CUT (0x0302 and 0x0300).
But I don't get these messages on Ctrl+X or Ctrl+V.
If I subclass a TextBox, I catch the messages as expected, but not in a
RichTextBox.
I do get these messages if I call the Paste() and Cut() methods directly,
but not on the shortcut keys.
Does anyone know how to catch these?