问题
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