Article View: borland.public.cppbuilder.nativeapi
Article #4110Re: Using clipboard delayed rendering properly
From: Clayton Arends
Date: Thu, 16 Mar 2006 20:33
Date: Thu, 16 Mar 2006 20:33
19 lines
1621 bytes
1621 bytes
ok, that makes sense. Currently what I'm doing is something like this:
// in message handler for WM_RENDERALLFORMATS
::OpenClipboard(NULL); // not sure if I should use handle or not
::EraseClipboard(); // help states that app should always erase
if (!ComponentState.Contains(csDestroying))
{
// add all formats using ::SetClipboardData()
}
::CloseClipboard();
return 0; // or Msg->Result = 0 for VCL handlers
Unless there's something I'm completely missing I think this is what I will
go with. I can't test this right now (different projects to work on, etc).
- Clayton
Technical Details
Message-ID:
<4419cbb5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<441992c7$1@newsgroups.borland.com> <i99j12hb8262gsums8vviisve75qsstiuf@4ax.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: "Clayton Arends" <nospam_claytonarends@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <441992c7$1@newsgroups.borland.com> <i99j12hb8262gsums8vviisve75qsstiuf@4ax.com> Subject: Re: Using clipboard delayed rendering properly Date: Thu, 16 Mar 2006 12:33:58 -0800 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 68.186.78.51 Message-ID: <4419cbb5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1142541237 68.186.78.51 (16 Mar 2006 12:33:57 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail