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
Solved

Switching Between View in MDI

Posted on 2003-10-30
6
214 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
ID: 9649485
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
ID: 9649492
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
ID: 11849677
My comment would be a way to achieve the desired effect
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 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