🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.win32
Article #2178

Clipboard "delayed rendering"

#2178
From: Jon Shemitz
Date: Sat, 31 Jan 1998 00:00
24 lines
1831 bytes
I've spent longer than I should on a little tray app that reads source
code from the clipboard and writes it back, syntax highlighted, in HTML
and RTF. Because it's very slow (rendering a mere 44K of source takes ca
a minute on a P90), I decided to implement "delayed rendering". When the
user double clicks on the tray icon, the app parses the source to a
global token list, and puts a NULL on the clipboard in CF_TEXT and "Rich
Text Format". Then, when the user tries to paste plain text, the app
renders HTML; when the user tries to paste rich text, the app renders
RTF.

Thing is, I get a WM_RENDERFORMAT request for the CF_TEXT format as soon
as I call CloseClipboard().

Is this 'by design' and unavoidable? Or is there some way I can force
Windows to delay rendering the CF_TEXT until it's requested, too?

The MSDN CD doesn't seem to say anything about "delayed rendering"
that's not in the SDK help files ....

-- 

http://www.midnightbeach.com - for info about me, my work, my writing,
                               and my homeschool resource pages.
Technical Details
Message-ID: <34D40BE9.1B4DD708@midnightbeach.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1091e5,172a182732b08709,start
X-Google-Attributes: gid1091e5,public
X-Google-Thread: 113dfb,172a182732b08709,start
X-Google-Attributes: gid113dfb,public
X-Google-Thread: f5ca7,172a182732b08709,start
X-Google-Attributes: gidf5ca7,public
From: Jon Shemitz <jon@midnightbeach.com>
Subject: Clipboard "delayed rendering"
Date: 1998/01/31
Message-ID: <34D40BE9.1B4DD708@midnightbeach.com>
X-Deja-AN: 321008988
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Midnight Beach
Mime-Version: 1.0
Reply-To: jon@midnightbeach.com
Newsgroups: comp.os.ms-windows.programmer.win32,borland.public.cppbuilder.winapi,borland.public.delphi.winapi