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

Posted on 2004-08-18
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

Accepted Solution

Nass89 earned 43 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 41 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 41 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

IT, Stop Being Called Into Every Meeting

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

Suggested Solutions

Title # Comments Views Activity
Question regarding Copy/Paste 16 86
Get filename and folder into excel 7 67
Detect CR LF to each line 12 137
matchUp  challenge 6 48
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

16 Experts available now in Live!

Get 1:1 Help Now