如何在 Windows vista 和 7 中检索 Windows 资源管理器使用的文件预览? [英] How to retrieve the file previews used by windows explorer in Windows vista and seven?
问题描述
我正在开发一个 Delphi 文档管理应用程序,所以我以某种方式为用户提供了一些类似于 Windows 资源管理器的功能.
我想知道是否有办法获得 windows 资源管理器使用的预览.例如,Windows 资源管理器会为 pdf 文档创建一个小缩略图,并在用户选择查看大图标"时显示它.有没有办法检索该预览?
MyTImage := GiveMePreviewForFile('C:TestFile.pdf');
@user193655,使用
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:TestFile.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
这篇关于如何在 Windows vista 和 7 中检索 Windows 资源管理器使用的文件预览?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!