clipboard question

General TRichView support forum. Please post your questions here
Post Reply
jbmmpm
Posts: 2
Joined: Thu Aug 03, 2006 3:16 pm
Location: Saint Paul, MN
Contact:

clipboard question

Post by jbmmpm »

Is there any way to determine where the data in clipboard came from?
My application needs to do special processing, based on richview item tags,
if the data came from my application, otherwise it will just process the paste as usual.

Thanks in advance for any help on this.
jbmmpm
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Your application can copy some additional custom format to the Clipboard
(in TRichView.OnCopy event). See RegisterClipboardFormat (WinAPI function). If this format is present, these data were copied by your application (but may be another instance of it)
Post Reply