如何检索Windows Vista中Windows资源管理器使用的文件预览和七个? [英] How to retrieve the file previews used by windows explorer in Windows vista and seven?

查看:112
本文介绍了如何检索Windows Vista中Windows资源管理器使用的文件预览和七个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Delphi文档管理应用程序,所以我以某种方式给用户一些类似于Windows资源管理器的功能。



我想知道是否有获取Windows资源管理器使用的预览的方法。例如,Windows资源管理器为PDF文档创建一个小缩略图,并在用户选择查看大图标时显示它。有没有办法检索该预览?

  MyTImage:= GiveMePreviewForFile('C:\Test\File.pdf' ); 

解决方案

@ user193655,使用 IExtractImage 界面是要走的路,这个界面公开了从Shell文件夹请求缩略图的方法



您可以在这个 site ,源代码是 here



查看此图片



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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆