如何检索Windows Vista中Windows资源管理器使用的文件预览和七个? [英] How to retrieve the file previews used by windows explorer in Windows vista and seven?
问题描述
我想知道是否有获取Windows资源管理器使用的预览的方法。例如,Windows资源管理器为PDF文档创建一个小缩略图,并在用户选择查看大图标时显示它。有没有办法检索该预览?
MyTImage:= GiveMePreviewForFile('C:\Test\File.pdf' );
解决方案@ user193655,使用 IExtractImage 界面是要走的路,
这个界面公开了从Shell文件夹请求缩略图的方法
查看此图片
alt text http://i46.tinypic.com /2updzbd.png
I am developing a Delphi documents management application, so somehow I am giving the user some functionality similar to windows explorer.
I would like to know if there is a way to get the preview used by windows explorer. For example windows explorer creates a small thumbnail for a pdf document for example, and displays it when the user chooses to view "big icons". Is there a way to retrieve that preview?
MyTImage := GiveMePreviewForFile('C:\Test\File.pdf');
解决方案@user193655, using the IExtractImage interface is the way to go,
this interface exposes methods that request a thumbnail image from a Shell folder
you can find a very complete sample in this site and the source code is here.
check this image
alt text http://i46.tinypic.com/2updzbd.png
这篇关于如何检索Windows Vista中Windows资源管理器使用的文件预览和七个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!