Order of views in MDI application
-
I build a MDI application, it contains 5 views. What is way to get information for order of view (view 1 is above view 2, view 2 is above view 3, ...). ----------------- conglt
-
I build a MDI application, it contains 5 views. What is way to get information for order of view (view 1 is above view 2, view 2 is above view 3, ...). ----------------- conglt
Hi, U can get the view position by following. this can be get from document class, CUrDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); POSITION pos = pDoc->GetFirstViewPosition(); while (pos != NULL) { CView* pView = pDoc->GetNextView(pos); } pos is position which u can type cast to integer. Parthi.
-
Hi, U can get the view position by following. this can be get from document class, CUrDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); POSITION pos = pDoc->GetFirstViewPosition(); while (pos != NULL) { CView* pView = pDoc->GetNextView(pos); } pos is position which u can type cast to integer. Parthi.
thanks ----------------- conglt