IShellItemImageFactory 图标\缩略图与 Windows 7 桌面不同
我正在使用 IShellItemImageFactory 获取文件和目录的图标和缩略图。在大多数情况下,这效果很好,但在某些情况下,我得到的图像与 explorer.exe 中的图像完全不同。
explorer.exe 中的文件夹显示了以纸片形式表示的一些内容。每当我请求目录的图像时,我的程序中都会出现一个空文件夹。
Windows Media Player 在 explorer.exe 中可播放的视频显示为一段幻灯片,并以缩略图为单元格。当我请求此类视频文件的图像时,我只得到一个没有电影片段边框的缩略图。
我确信还有其他示例,但总的来说,我只是想知道是否有一种方法可以从系统请求图像,该图像看起来与桌面上或 explorer.exe 中的文件夹中显示的图像完全相同。我希望一切看起来都一样,这样我的程序就不会“马虎”。
I am using IShellItemImageFactory to get icons and thumbnails for files and directories. In most cases this works great, but in some cases I get an image that is quite different from the one in explorer.exe.
Folders in explorer.exe show some of their contents represented as pieces of paper. Whenever I request an image for a directory, I get an empty folder in my program.
Videos playable by Windows Media Player in explorer.exe show as a piece of filmstrip with a thumbnail as the cell. When I request an image for such a video file I get just a thumbnail with no movie strip border.
I am sure there are other examples, but in general I just want to know if there is a way to request an image from the system that looks exactly like whatever is displayed on the desktop or in a folder in explorer.exe. I want everything to look the same so my program isn't "sloppy."
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案在这里:
http://msdn .microsoft.com/en-us/library/cc144118(v=VS.85).aspx#adornments
装饰是我缺少的效果,看来我必须渲染他们手动。
MSDN 上的 TiKu 向我解释了这一点,值得赞扬。
The answer is here:
http://msdn.microsoft.com/en-us/library/cc144118(v=VS.85).aspx#adornments
The adornments are the effects I am missing and it seems I would have to render them manually.
TiKu on MSDN explained this to me and deserves the credit.