this might be a simple question: I need to add a few new controls to a
standard file open dialog. In thehory I know how to do that (derive from
CFileDialog and so on) but I think the template for Explorer-like open
dialog is not available. (Or is it?) It probably means that I would have to
modify (ie. add buttons) the dialog at runtime (during OnInitDialog?).
Is there somewhere a sample?
I thought there was an article in KB as well but I can't locate it...
Thanks for any info
Check out the Microsoft Developer Network Library Online.
There's an example called COMDLG32 that does what you
are trying to do.
Greg Gagnaux
Windows Software Developer
gagnaux@~ibm.net
remove ~ to email
If it's ok to have your controls on the top, side or bottom, the easiest
way is to derive your own class from CFileDialog and make a dialog template
in the resource editor that contains your controls.
Simply add a static with the ID "stc32" and place it where the original
FileDialog controls shall go.
You need to include <dlgs.h> in your ressource file to get the stc32
define.
The File Dialog must be created w. OFN_ENABLETEMPLATE
cU
--
Dirk Djuga mailto:di...@solaris.stuttgart.netsurf.de
http://www.geocities.com/TimesSquare/1658/