🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4842

Re: Load picture from clipboard

#4842
From: Remy Lebeau (TeamB)
Date: Wed, 16 Nov 2005 22:21
24 lines
1745 bytes
"sky" <akeehuang@163.com> wrote in message
news:437ac860@newsgroups.borland.com...

> I want to get a image from excel, the image can be saved
> to clipboard with CF_PICTURE format but i do not know
> how to load it by TClipboard or API

CF_PICTURE is not a clipboard format.  It is a special value that allows
TClipboard.HasFormat() to check if the clipboard contains an image format
that TPicture recognizes.  For example:

    If Clipboard.HasFormat(CF_PICTURE) then
        SomePicture.Assign(Clipboard);

If, on the other hand, you are referring to the actual "Picture" clipboard
format, then that has nothing to do with CF_PICTURE at all.  The "Picture"
format is a private OLE format for Excel's own use that neither the Win32
API nor the VCL recognize.

Please provide more details.


Gambit
Technical Details
Message-ID: <437bb0c4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <437ac860@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,156821a2dfb3af04
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <437ac860@newsgroups.borland.com>
Subject: Re: Load picture from clipboard
Date: Wed, 16 Nov 2005 14:21:16 -0800
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <437bb0c4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1132179652 68.69.17.41 (16 Nov 2005 14:20:52 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail