views:

48

answers:

0

I've had loads of problems detecting copy/paste operations in my custom subclass of CRichEditCtrl (WM_PASTE,etc don't get received) but got a working solution which traps paste events and removes formatting on pasted text.

Now I realised that CRichEditCtrl supports drag & drop by default and this bypasses my custom code. Are there easy ways to detect:

a)when a drop is performed, so I can alter what is pasted in

b)when a drag is initiated, so i can control what is copied

Also, does drag-n-drop actually use the standard clipboard to transfer data?