🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Using clipboard delayed rendering properly

#4111
From: Bob Gonder
Date: Thu, 16 Mar 2006 20:48
24 lines
1658 bytes
Clayton Arends wrote:

>Unless there's something I'm completely missing I think this is what I will 
>go with.

The help says don't open the clipboard when you get a
WM_RENDERALLFORMATS, just SetClipboardData.

<help>
An application should not open the clipboard before calling
SetClipboardData in response to the WM_RENDERFORMAT or
WM_RENDERALLFORMATS message. 
</help>


So the proper response would simply be...

case WM_RENDERFORMAT:
case WM_RENDERALLFORMATS:
	  if (!ComponentState.Contains(csDestroying))
	  {
	    // add all formats using ::SetClipboardData()
	  }
	  return 0; // or Msg->Result = 0 for VCL handlers
Technical Details
Message-ID: <b5jj121ec6m2hgdj25unldrhcc7fdp7psh@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <441992c7$1@newsgroups.borland.com> <i99j12hb8262gsums8vviisve75qsstiuf@4ax.com> <4419cbb5$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7724c9adc11ffdfe
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: Using clipboard delayed rendering properly
Date: Thu, 16 Mar 2006 12:48:58 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <b5jj121ec6m2hgdj25unldrhcc7fdp7psh@4ax.com>
References: <441992c7$1@newsgroups.borland.com> <i99j12hb8262gsums8vviisve75qsstiuf@4ax.com> <4419cbb5$1@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: 71.0.32.88
X-Trace: newsgroups.borland.com 1142542137 71.0.32.88 (16 Mar 2006 12:48:57 -0700)
Lines: 27
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail