🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Using clipboard delayed rendering properly

#4106
From: Clayton Arends
Date: Thu, 16 Mar 2006 16:31
18 lines
1739 bytes
All,

I have recently created a test program which sets clipboard data using 
delayed rendering by handling the WM_RENDERFORMAT and WM_RENDERALLFORMATS 
messages rather than setting the data up front.  This works fine.  I have 
noticed that when my application closes the WM_RENDERALLFORMATS message is 
sent asking my program to put the data in the clipboard before my app is 
gone (makes sense).

For the program that I am creating I do not desire the clipboard to be 
filled when the app exits.  My question is: what is the typical way that 
programs handle this situation?  Should I ignore the message (return 
non-zero)?  Should I empty the clipboard before the app closes or during the 
WM_RENDERALLFORMATS message?

I really would just like to know the standard way other people handle this.

- Clayton 
Technical Details
Message-ID: <441992c7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.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

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7724c9adc11ffdfe,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Clayton Arends" <nospam_claytonarends@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Using clipboard delayed rendering properly
Date: Thu, 16 Mar 2006 08:31:03 -0800
Lines: 20
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: <441992c7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1142526663 68.186.78.51 (16 Mar 2006 08:31:03 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.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