🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Using clipboard delayed rendering properly

#4117
From: Bob Gonder
Date: Fri, 17 Mar 2006 19:41
37 lines
2556 bytes
Clayton Arends wrote:

>From the help for WM_RENDERALLFORMATS:
>
>  When responding to a WM_RENDERALLFORMATS message, the clipboard
>  owner must call the OpenClipboard and EmptyClipboard functions before
>  calling SetClipboardData.


Ok, I see the conflict.
The general overview as well as the doc for SetClipboardData say DON'T
Open/Close for Both the WM_RENDERx, whereas the docs for
WM_RENDERFORMAT say DON'T and the docs for WM_RENDERALLFORMATS say DO.

This may wrap. SetClipboardData
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/dataexchange/clipboard/clipboardreference/clipboardfunctions/setclipboarddata.asp

Again, may wrap: WM_RENDERALLFORMATS
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/dataexchange/clipboard/clipboardreference/clipboardmessages/wm_renderallformats.asp

Both from MSDN, so which is correct?

This example code from MSDN shows non-Open/Close usage:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/dataexchange/clipboard/usingtheclipboard.asp

In particular:

case WM_RENDERFORMAT: 
    RenderFormat((UINT) wParam); 
    break; 
 
case WM_RENDERALLFORMATS: 
    RenderFormat(uLabelFormat); 
    RenderFormat(CF_TEXT); 
    break;

No Open/Erase/Close in there at all.
Technical Details
Message-ID: <l93m1293qhhraneii92uedeqvlkmfgtra7@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.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
References: <441992c7$1@newsgroups.borland.com> <i99j12hb8262gsums8vviisve75qsstiuf@4ax.com> <4419cbb5$1@newsgroups.borland.com> <b5jj121ec6m2hgdj25unldrhcc7fdp7psh@4ax.com> <441a1fc3$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: Fri, 17 Mar 2006 11:41:40 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <l93m1293qhhraneii92uedeqvlkmfgtra7@4ax.com>
References: <441992c7$1@newsgroups.borland.com> <i99j12hb8262gsums8vviisve75qsstiuf@4ax.com> <4419cbb5$1@newsgroups.borland.com> <b5jj121ec6m2hgdj25unldrhcc7fdp7psh@4ax.com> <441a1fc3$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: 67.77.144.160
X-Trace: newsgroups.borland.com 1142624500 67.77.144.160 (17 Mar 2006 11:41:40 -0700)
Lines: 40
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.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