Dialog Items within a CDocument?

Posted on 2003-02-20
Medium Priority
Last Modified: 2013-11-20
I'm a freshman at MFC and trying out the assistents.

I want wo have a MDI-Application. But I want to use Dialog-Items within the documents. How? Is it possible with visual programming?

thankful for every help...
Question by:chef-hunter
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

Accepted Solution

northernchill earned 150 total points
ID: 7988914
You can declare the dialog item variables in the documents, but each view will need to create a separate instance of the item.  Then each view will need to programatically create the graphical aspect of each control.  This can get messy.  

In the document/view architecture (MFC MDI/SDI applications) the document is used to handle the applications data and views are there to provide a graphical representation of the data.

As you are a "freshman at MFC" I would not recommend trying this approach as it has the potential of creating poor style habits.

Expert Comment

ID: 7991622
If you use CFormView derived class as your view, you can access the dialog items from your corresponding document.

Author Comment

ID: 7991969
Thanks for your help.

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

770 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