Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

reaching mdichildwnd

Posted on 1997-12-17
2
Medium Priority
?
244 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
[X]
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
2 Comments
 

Accepted Solution

by:
kalaru earned 200 total points
ID: 1312555
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
ID: 1312556
well that is how I do it, get doc, get view, getparent (not getparentframe)
I was hoping thiswas the shortest way.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

604 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