|
-
August 28th, 2008, 02:58 PM
#1
CFileDialog dynamically change filter list
Is there any way to dynamically update the filter list (i.e. "Save as type") once a CFileDialog is already created?
Here is a brief run down of what I'm trying to do. Our program uses a profile system which allows you to select from a bunch of options and then save them as a file type which you can then select from the save dialog. Right now I accomplish this by simply building the filter list using the profiles before the save dialog is created, which is easy. However my boss has just requested that I add feature which allows users to create a new profile directly from within the save dialog. I have got it all working except that I can't figure out a way to add the newly created profile to the CFileDialogs filter list. Our save dialog is using an derived class with an overlay template for additional UI elements, so I have almost full control over it. But I can't seem to figure out any way to add file types to the filter list dynamically. Does anyone know how to accomplish this?
Thanks,
Dan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|