Solved

reaching mdichildwnd

Posted on 1997-12-17
2
236 Views
Last Modified: 2013-11-19
Using CMultiDocTemplate  pointer together with  GetFirstDocPosition() & GetNextDoc() iterates all documents
of an MDI application, but what if I need to access the
CMDIChildWnd of these documents ? Can I access directly
from  CMultiDocTemplate  pointer ? or Should it be get the document and get its corresponding CMDIChildWnd ? How ?
Else, how ?
0
Comment
Question by:has
2 Comments
 

Accepted Solution

by:
kalaru earned 50 total points
Comment Utility
Using GetFirstDocPosition() and GetNextDoc(), u'll get all the Docs in an MDI application. For each Doc , if u have only one view , u can use GetFirstViewPosition() and GetNextView()to get the view associated with that document.

Then to get the CMDIChildWnd pointer, GetParentFrame() of that view might work!  
0
 

Author Comment

by:has
Comment Utility
well that is how I do it, get doc, get view, getparent (not getparentframe)
I was hoping thiswas the shortest way.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Define unique primary key 9 81
format the code in java 6 72
sum13 challenge 24 77
sumHeights2  challenge 7 75
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…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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 tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 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

15 Experts available now in Live!

Get 1:1 Help Now