无法在文件对话框中刷新缩略图 [英] Cannot refresh thumbnail in file dialog

查看:92
本文介绍了无法在文件对话框中刷新缩略图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

1:我创建了一个缩略图提供程序来处理我的自定义文件并进行注册。

1: I create a thumbnail provider for dealing my custom file and register it.

2:它在Windows 7资源管理器(图标视图)上正确运行。

2: It runs correctly on windows 7 explorer (icon view).

当文件不存在系统缩略图缓存时,无法在文件对话框(图标视图)上显示我文件的缩略图图像。

cannot show the thumbnail images of my files on file dialog (icon view) when the files do not exist system thumbnail cache.

换句话说,打开文件对话框后会调用我的缩略图提供程序。

In other words, my thumbnail provider is invoked after opening file dialog.

我使用关注MFC /用于创建文件打开对话框的C ++代码:

I use follow MFC/C++ code to create a file open dialog:

CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_READONLY, _T("所有文件|*.*||"), NULL);


此外,还可以显示使用打开文件对话框(图标视图和显示所有文件)的文件的缩略图图像窗口记事本

application 

mspaint应用程序 
当文件不存在时系统缩略图缓存。

In addition, can show thumbnail images of my files that use the open file dialog (icon view and show all file) of window notepad application or mspaint application when the files do not exist system thumbnail cache.

所以,  ;我如何定义文件对话框?

So,  How I define my file dialog?

谢谢

注意

推荐答案

我找到了原因:

I found the cause:

我的电脑操作系统是windows7 x64,  缩略图提供者也是x64。

My pc OS is windows7 x64, and the thumbnail provider is x64 too.

但文件对话框用于x86应用程序。所以,  缩略图
提供者未被调用。

所有x64或32,它可以正常工作。

一个问题:   应用程序:x86   OS系统:x64  缩略图
提供者:x64

A question: Application: x86    OS System: x64  Thumbnail provider: x64

t humbnail
provider 

全部谢谢

Regard





这篇关于无法在文件对话框中刷新缩略图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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