How to disable automatic appending of wildcard pattern in Vista file open dialog

喜夏-厌秋 提交于 2019-12-10 17:05:47

问题


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


回答1:


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"


来源:https://stackoverflow.com/questions/2109466/how-to-disable-automatic-appending-of-wildcard-pattern-in-vista-file-open-dialog

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!