Solved

MDI question concerning ID_FILE_OPEN

Posted on 1998-03-25
1
224 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
gaohong earned 100 total points
ID: 1183802
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
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 how to clear a vector as well as how to detect empty vectors in C++.

630 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