1

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

efotinis
  • 14,565
  • 6
  • 31
  • 36

3 Answers3

1

Look up subclassing windows.

Ferruccio
  • 98,941
  • 38
  • 226
  • 299
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.

Jason Diller
  • 3,360
  • 2
  • 24
  • 25
0

Subclass the edit box and handle the WM_PASTE message.

efotinis
  • 14,565
  • 6
  • 31
  • 36