How do I intercept a paste event in an editbox?

元气小坏坏 提交于 2019-12-24 17:25:45

问题


How do I intercept a paste event in an editbox, possibly before the value is transferred to the object?


回答1:


Look up subclassing windows.




回答2:


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.




回答3:


Subclass the edit box and handle the WM_PASTE message.



来源:https://stackoverflow.com/questions/96271/how-do-i-intercept-a-paste-event-in-an-editbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!