Solved

reaching mdichildwnd

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Separate files macro - Errors on larger data set 18 65
How to determine file rename from EventLog ? 2 41
Line meaning 9 81
Not needed 13 93
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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. …
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

911 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

18 Experts available now in Live!

Get 1:1 Help Now