You have to enumerate documents not childer frames:
Do that:


POSITION pos = AfxGetApp()->GetFirstDocTemplatePosition();
CDocTemplate* pDt = AfxGetApp()->GetNextDocTemplate( pos);
if(pDt != 0)
{
POSITION pos = pDt->GetFirstDocPosition();
while(pos)
{
CDocument* pDoc = pDt->GetNextDoc( pos);
pos = pDoc->GetFirstViewPosition();

CView* pV = pDoc->GetNextView( pos);
//// you have the view
if(pV != 0)
{
CMDIFrameWnd* pMDIFrame = (CMDIFrameWnd*)pV->
GetParentFrame();
// // YOU HAVE THE MDI FRAME
}
}
}

"Mason" <mason2000@hotmail.com> wrote:
>
>Dows anyone know how I can get an array of all the child windows that are
>currently open in an MDI application?
>
>Thanks