如何在Vista文件打开对话框中禁用通配符模式的自动附加 [英] How to disable automatic appending of wildcard pattern in Vista file open dialog

查看:70
本文介绍了如何在Vista文件打开对话框中禁用通配符模式的自动附加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用文件打开对话框来选择图像文件以进行进一步的编辑.过滤器列表包含一个所有支持的格式"条目,该条目代表一长串文件格式. 由于Vista会在过滤器组合框中自动添加通配符样式,因此扩展的组合框太宽而无法完全显示在屏幕上.除此之外,它看起来还不太好. 那么是否可以禁用此行为并让Vista显示原始过滤器字符串?

I'm using a file open dialog to chose image files for further editing. The filter list contains an "All supported formats" entry which represents a long list of file formats. Since Vista automatically appends the wildcard patterns in the filter combobox, the expanded combobox is too wide to fit completely on the screen. Besides that it doesn't look very well. So is it possible to disable this behaviour and let Vista display the original filter string?

关于,
丹尼尔

Regards,
Daniel

推荐答案

Vista仅在您尚未这样做的情况下才将文件格式列表附加到文本中.因此,如果您的过滤器是所有支持的格式| * .jpg; *.bmp; ...",它将自动添加它,但如果它是所有支持的格式(*.*)| *.*",则不会t.它会检查是否有通配符,但不会检查它们是否匹配,因此这两种方法都可以使用:

Vista only appends the file format list to the text if you haven't already done so yourself. So if your filter is "All Supported Formats|*.jpg;*.bmp;..." then it will automatically add it, but if it's "All Supported Formats (*.*)|*.*" then it doesn't. It does check that there is a wildcard, but it doesn't check that they match, so either of these approaches would work:

"All Supported Formats (*.*)|*.jpg;*.bmp;*.gif"
"All Supported Formats (*.jpg;...)|*.jpg;*.bmp;*.gif"

这篇关于如何在Vista文件打开对话框中禁用通配符模式的自动附加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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