How do I intercept a paste event in an editbox, possibly before the value is transferred to the object?
如何在值转移到对象之前拦截编辑框中的粘贴事件?
3 个解决方案
#2
1
If you subclass then intercept the WM_PASTE message you can do what you want, throw the message away to prevent the paste, manipulate the clipboard data, whatever.
如果您继承然后拦截WM_PASTE消息,您可以执行您想要的操作,抛弃消息以防止粘贴,操纵剪贴板数据等等。
#3
0
Subclass the edit box and handle the WM_PASTE message.
对编辑框进行子类化并处理WM_PASTE消息。
#1
#2
1
If you subclass then intercept the WM_PASTE message you can do what you want, throw the message away to prevent the paste, manipulate the clipboard data, whatever.
如果您继承然后拦截WM_PASTE消息,您可以执行您想要的操作,抛弃消息以防止粘贴,操纵剪贴板数据等等。
#3
0
Subclass the edit box and handle the WM_PASTE message.
对编辑框进行子类化并处理WM_PASTE消息。