Mastering Development

Setting the supported file types for a MFCBrowseEdit control in File mode?

I have a MFC Browse Edit control on my dialog:

Sample Dialog

When I hit the Browse button I see a File dialog, but it has no concept of file types:

File Types

The list of file types is empty. Now, I know I can type something like *.jpg to filter for JPG images but ideally I want this filetypes list to include a basic set of image file types and a generic one to show all the image file types.

I have set the browse mode to File but I can’t see any other settings to customize the file dialog behaviour:

Resource Editor Properties

This is the snippet from RC file:

                "MfcEditBrowse",WS_BORDER | WS_TABSTOP | 0x80,14,32,288,14

Leave a Reply

Your email address will not be published. Required fields are marked *