Clipboard Q - probably asked 1000+ times before :o)
Posted on 1999-07-06
What i need to do is:
I have an handle to an icon, and i need to put it in the clipboard in few formats..
my code look something like this, and guess what - its not working :o)
Image2.Picture.Bitmap.Handle:= ExtractIcon(hInstance, PutDoIkona, x);
if OpenClipboard(0)=true then
SetClipboardData(CF_DIB, ???); //if i put a handle ti icon - nothing happens, if i put 0 - the program like paint has problem with opening it...
what i need is an answer :
1. How to put a picture in clipboard?
2. How to put it in diferent formats, like CF_DIB, CF_METAFILEPICT, and CF_ICO?
3. Since CF_ICO is not registered format how to register it ?
I need examples for all those questions...
If 100 points is not enough i will give more :o)