In Visual C++, how do I create multiple views in a single document interface ?

Posted on 2004-08-18
Medium Priority
Last Modified: 2013-11-20

  In my program, i have to display a single data set in 4 views(child windows). please help

Question by:cbodapati
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

Nass89 earned 172 total points
ID: 11838643
You may add/ remove views using:   CDocument::AddView()  or

You may have a handler of your document class invoked by a menu entry or a toolbar button (or both). Then you create a  new view and remove the old and add the new. To show the view use ShowWindow(SW_SHOW).

Good Luck!
LVL 44

Assisted Solution

AndyAinscow earned 164 total points
ID: 11838720
look at the chkbook example - two (different) views on one document displayed at the same time.


     {{link added -- DanRollins/ EE PE}}
LVL 55

Assisted Solution

by:Jaime Olivares
Jaime Olivares earned 164 total points
ID: 11870087

Author Comment

ID: 11900262
thanks all
  I have gone through the above links.
     I want to display 3 views simultanously from 1 doc,
   how to go about it in a better manner.
  please help.

LVL 44

Expert Comment

ID: 11900296
Follow the chkbook example but create a third view as well.
(Do you not understand a part of what the multiple view creation there is doing?)

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses

801 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