Does anyone know how to get a handle to a mdi child window WITHOUT MAKING IT ACTIVE? Take a look at this code: CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd; CMDIChildWnd *pChild; CMyView *pView; CMyDoc *doc; CString findWindow = "My1";// this is the title of the window i want to find while(TRUE){ pChild = (CMDIChildWnd *)pFrame->GetActiveFrame(); pView = CMyView *) pChild->GetActiveView(); doc = (CMyDoc *) pView->GetDocument(); CString str; str = doc->GetTitle(); //if screen title is the same as node text, return. if(findWindow.Compare(str) == 0) return TRUE; pFrame->MDINext(); } This code works great, it will find the child window that has the same title as the one i pass to it. however, it will make all the open windows active when, method MDINext() will go to next child and will activate that child, i don't want that, i want it to search through all window without activating them. I used LockWindowUpdate on pFrame after calling MDINext() but it did not work, any idea? Thanks, ****Rukhsar
R
Rukhsar
@Rukhsar