Date: | September 18, 2007 / year-entry #348 |
Tags: | code |
Orig Link: | https://blogs.msdn.microsoft.com/oldnewthing/20070918-00/?p=25083 |
Comments: | 5 |
Summary: | Here's a customer question: I've put data on the clipboard as delay-rendered, but I'm getting a WM_RENDERFORMAT request for my CF_HDROP for many operations even though nobody actually looks at the files. Operations such as right-clicking a blank space on the desktop or opening the Edit menu. I don't want to render the data until... |
Here's a customer question:
The These simple operations cause a request for That you shouldn't generate dynamic data in response to What is the correct thing to do if you want to delay-render a virtual file? Use the FileGroupDescriptor clipboard format. That's what it's for: Delay-rendering of virtual file contents. (I'm assuming an advanced audience that knows how to use a FileGroupDescriptor. There will be a remedial course in the use of the FileGroupDescriptor sometime next year.) |
Comments (5)
Comments are closed. |
"There will be a remedial course in the use of the FileGroupDescriptor sometime next year."
Too much of future planing!!.. why don’t you provide the date also..
Because Raymond reserves the right to insert new topics in the middle of the topic queue as he sees fit — thus making anything more precise than "sometime next year" impossible to predict.
For the impatient, the relevant MSDN article to get you started with FileGroupDescriptor seems to be:
http://msdn2.microsoft.com/en-us/library/aa969394.aspx
See the section headed CFSTR_FILEDESCRIPTOR.
I agree: there’s no reason to use delayed rendering if it’s a format that is cheap to produce in the first place (in terms of time and memory). Save Delayed Rendering for expensive formats with a low probability of use, such as Bitmap from a spreadsheet.
OTOH, there is WAY too much clipboard monitoring going on. Programs spy on the clipboard, performing a full-blown paste (even if it’s not apparent to the user) just to light up their "paste" buttons and menus. Excessive, and invasive clipboard monitoring by programs that aren’t expected to be clipboard monitors, leads to lots of trouble for everyone.
Visit my site for more on common clipboard mistakes and abuses…
I dont know what FileGroupDescriptor is, but I can imagine what it is, and I’m looking forward to additional "under cover" info.
Your post was very useful anyway, thanks.