Solved

Switching Between View in MDI

Posted on 2003-10-30
6
185 Views
Last Modified: 2013-11-20
Hi all,

I have got a small problem when i was workin on MDI application. My requirement is that i have Two view each of diffrent type (i.e., one view is derived from CView and other derived from CEditView) and i have used a Single Document Class. I have to Switch between each of the views. How to do it? if any body can help me plz reply me fast.

0
Comment
Question by:rahulr_01
  • 3
6 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 35 total points
Comment Utility
m_pwndMyView->SetFocus();
m_pwndMyView->SetForegroundWindow();

where m_pwndMyView is a pointer to the view you want to switch to.
0
 
LVL 44

Expert Comment

by:AndyAinscow
Comment Utility
Or do you mean one is visible and the other hidden?
Then

m_pwndMyView->ShowWindow(SW_SHOW); //to make visible or SW_HIDE to hide the window
would be required to show the hidden on then hide the previously visible one.
0
 
LVL 44

Expert Comment

by:AndyAinscow
Comment Utility
My comment would be a way to achieve the desired effect
0

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

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

16 Experts available now in Live!

Get 1:1 Help Now