How to define an insert operation in a text box?

I want to determine when the user pasted something into the text box. I want to determine if the user used a mouse or keyboard.

This is vb6

+3
source share
2 answers

Karl E. Peterson HookXP is a pretty cool code example that shows you how to capture an insert event, as well as a bunch of other interesting things. I changed it and removed it a bit, and was able to do what you asked for, so I can guarantee that it works. I would post it here, but I would violate its license .

+3
source

, - WM_PASTE.

+1

Source: https://habr.com/ru/post/1738612/


All Articles