Solved

MDI question concerning ID_FILE_OPEN

Posted on 1998-03-25
1
218 Views
Last Modified: 2006-11-17
I am writing a multiple document interface program.  I want to
be able to use some of the commands that are produced by
the wizard.  Namely the file open, save, and save as commands
I plan on using the ID_FILE_OPEN and other commands.  How
can I modify the properties of the CommonDialogs that are created
by these commands.  If it is not possible, I know I can create my
own dialogs with the CFileDialog class, but how would I use that
in the MDI.  I am used to using a dialog program where I could just
add the dialog control to my project dialog.
0
Comment
Question by:jrmcg
1 Comment
 
LVL 3

Accepted Solution

by:
gaohong earned 100 total points
Comment Utility
You should derive your CMDIFrameWnd class and handle command
identified by ID_FILE_OPEN, which is generate a CFileDialog
object, where you could set or modify properties. If you want
add extra controls to the common file open dialog, then you have
to derive your own class and modify the common control resource
to add your own control.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now