Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am working on this MFC application that uses a split window. The problem is that I need to get a pointer to any MDIChild window so that I can get a pointer to any of the views so that I can get a pointe to document object from a certain function for some operations. Please, how do I get a pointer to any MDIChild child window?

Since I have a splitter window pointer in my MdiChhild window, i know that once I get a pointer to the mdichild window from the said function all I need to do is call GetPane on the splitter window pointer.But the question is "How do I get the pointer to the MDC child window from any( or a given) function?
Posted
Updated 7-May-14 17:38pm
v3
Comments
Sergey Alexandrovich Kryukov 7-May-14 12:37pm    
Don't use MDI at all and be happy. Who needs this trash, ever?
—SA

1 solution

Please, read Sergey's comment to your question. I agree with Him.

But, if you still want to act with MDI windows, have a look here: EnumChildWindows function[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900