Click to See Complete Forum and Search --> : Get a pointer to a 3rd level child window


axr0284
January 28th, 2005, 04:18 PM
Hi,
I am trying to get a pointer to a child window that is down 3 level from the main window.
The only thing I can start with is AfxGetApp()->m_pMainWnd. This gets me a Cwnd * to the main window. From there on, I have to find a way to get to a certain child window. Can anybody let me know if they are aware of a way to do such a thing. I am using MFC dialogs. Thanks
Amish

Mutilated1
February 1st, 2005, 11:03 AM
Do you know the Resource ID of the Window ? If so, there are a few easy ways you can use to retrieve the CWnd*, otherwise if its a dynamically created CWnd, you will need to store a CWnd* to it ahead of time.