Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HOWTO: Add controls to file open dialog

13 views
Skip to first unread message

Petr Novotny

unread,
Jan 20, 1998, 3:00:00 AM1/20/98
to

Hi,

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


Petr.N...@antek.cz

Greg Gagnaux

unread,
Jan 20, 1998, 3:00:00 AM1/20/98
to

Petr

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

Dirk Djuga

unread,
Jan 21, 1998, 3:00:00 AM1/21/98
to

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/

0 new messages