07-02-2011, 07:21 PM
getclip supports only clipboard formats where data is stored in global memory. Also bitmap.
We don't know where is stored data of "MicroStation Element" format, and how to get it.
Formats 3 and 14 are or contain metafile handles. Metafiles store pictures. To read more, click the link in QM output when you run macro "enum clipboard formats".
It is possible to get metafile data from handle. I never tried it. I would try GetEnhMetaFileBits or similar function, look in MSDN. Or maybe easier would be to save it to file with CopyEnhMetaFile, then getfile. To get handle, use format 14, but instead of getclip use OpenClipboard, GetClipboardData, CloseClipboard.
We don't know where is stored data of "MicroStation Element" format, and how to get it.
Formats 3 and 14 are or contain metafile handles. Metafiles store pictures. To read more, click the link in QM output when you run macro "enum clipboard formats".
It is possible to get metafile data from handle. I never tried it. I would try GetEnhMetaFileBits or similar function, look in MSDN. Or maybe easier would be to save it to file with CopyEnhMetaFile, then getfile. To get handle, use format 14, but instead of getclip use OpenClipboard, GetClipboardData, CloseClipboard.