ilian
May 19th, 1999, 01:42 AM
How can I check for presence of MDI Child window without making it active ? Thanks in advance.
|
Click to See Complete Forum and Search --> : MDI Windows ilian May 19th, 1999, 01:42 AM How can I check for presence of MDI Child window without making it active ? Thanks in advance. olivier May 19th, 1999, 03:50 AM This might help you ================================= POSITION pos = AfxGetApp()->GetFirstDocTemplatePosition(); while (pos != NULL) { CDocTemplate* pDocTemplate = GetNextDocTemplate(pos); if (pDocTemplate != NULL) { POSITION docPos = pDocTemplate->GetFirstDocPosition(); while (docPos != NULL) { CDocument *pDoc = pDocTemplate->GetNextDoc(docPos); if (pDoc != NULL && (pDoc->IsKindOf(RUNTIME_CLASS(COrderDoc)) || pDoc->IsKindOf(RUNTIME_CLASS(CRealTimeDoc)))) { POSITION posView = pDoc->GetFirstViewPosition(); CView* pView; while (posView != NULL) { pView = pDoc->GetNextView(posView); if (pView->IsKindOf(RUNTIME_CLASS(COrderView))) { pView->RedrawWindow(); break; } } } if (pDoc->IsKindOf(RUNTIME_CLASS(CRealTimeDoc)) || pDoc->IsKindOf(RUNTIME_CLASS(CHistoricDoc))) { if (bRedrawSeparator || bRedrawDate) ((CGraphicListDoc*)pDoc)->UpdateAllViewsFormat(); ((CGraphicListDoc*)pDoc)->SetUpdateTime (CIni::GetFlash (GENERAL_SECTION)); } } } } codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |