I have a list of CViews which are Child windows. I want to iterate over this list and HIDE (not close or destroy) each Child View in the list. I can't get this to work. So far I have tried:
CMainFrame * pFrame = (CMainFrame *)::AfxGetMainWnd();
POSITION pos = m_lstViews.GetHeadPosition();
CView * pCurrentView = m_lstViews.GetNext(pos);
pCurrentView = (pos) ? m_lstViews.GetNext(pos) : NULL;
Any help would be great!