🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Clipboard

#7908
From: Bob Gonder
Date: Tue, 14 Dec 2004 22:14
34 lines
2392 bytes
Chris wrote:

>How would I go about placing an image (bitmap) and some text on the 
>clipboard at the same time?
>
>I need to place text such as
>
>begin.image1
>    image.name=Image1
>    image.x=10
>    image.y=10
>    image.lockaspect=1
>
>etc but I also need the bitmap data too.

From the help ( Win32.hlp, Index entry: Clipboard )

"A window can place more than one clipboard object on the clipboard,
each representing the same information in a different clipboard
format. When placing information on the clipboard, the window should
provide data in as many formats as possible. To find out how many
formats are currently used on the clipboard, call the
CountClipboardFormats function. "

"After emptying the clipboard, the window places data on the clipboard
in as many clipboard formats as possible, ordered from the most
descriptive clipboard format to the least descriptive. For each
format, the window calls the SetClipboardData function, specifying the
format identifier and a global memory handle. The memory handle can be
NULL, indicating that the window renders the data on request. For more
information, see Delayed Rendering. "

Delayed Rendering is good... "if the application supports several
clipboard formats, some or all of which are time-consuming to render."
Technical Details
Message-ID: <m3pur0ljctb0o3ugqq62br1sbr1kn38csa@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41bf3edb@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,23e8f8184da9efdb
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Clipboard
Date: Tue, 14 Dec 2004 14:14:23 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <m3pur0ljctb0o3ugqq62br1sbr1kn38csa@4ax.com>
References: <41bf3edb@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.90.147
X-Trace: newsgroups.borland.com 1103062461 69.69.90.147 (14 Dec 2004 14:14:21 -0800)
Lines: 37
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail