In addition to my custom-format clipboard post, I am considering writing my own clip monitoring component.
Prior to approval:
ClipboardWindow:=SetClipboardViewer(Form1.Handle);
I saw in the sample code I studied the following snippet:
OpenClipboard(Form1.Handle); EmptyClipboard; CloseClipboard;
while others do not contain a cleanup code at all. I am embarrassed.
I believe that Clipbrd.TClipboard.Clear just does the same with VCL.
My question is :
When is it necessary to clear the clipboard before attaching to the clipboard chain ?
source share