views:

364

answers:

3

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

+1  A: 

Look up subclassing windows.

Ferruccio
+1  A: 

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.

Jason Diller
A: 

Subclass the edit box and handle the WM_PASTE message.

efotinis