문제

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 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"
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top