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

reaching mdichildwnd

Posted on 1997-12-17
2
239 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
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maven archtype selection in eclipse 1 57
mapAB Challlenge 35 155
wordmultiple challenge 12 140
Change to event 1 117
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: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.

792 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