Solved

reaching mdichildwnd

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Pressing cancel button with C# UI Automation 3 67
no14 challenge 14 66
wait notify demo infinite loop 3 110
Sed question 2 84
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 …
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…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 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