Doc View - Traversing for all open documents
I'm writing a CRichEditDoc/View app. I'm not too familiar with all of its intricacies so perhaps you can assist me...
I am unaware of how to go about traversing all open documents. I am doing this from my CMainFrame class and know that I can use CFrameWnd::GetActiveDocument() to retrieve a pointer to the active document. I also know that in CDocument I can call GetNextView() to traverse views (although I am unsure why you can do this as I thought there was a one-to-one relationship between docs and views, but eh). The thing I can't figure out is how to retrieve pointers to each open CDocument in the app..
As always, all assistance is greatly appreciated. Thanks.