Searching MSDN I found sample called VSWAP32 with implements a method to
have multiple views for a SDI app.
However, the published method does not work with CSplitterWnd for it
relies on the AFX_ID_FIRST_PANE to be reused inside an array of IDs at
the CWndApp (see sample code by going to VC++ -> HELP -> SEARCH ->
My question is as follows : I want to have n views that are
interchangeable via toolbar selection on a SDI application. I do have 1
view which is a CTreeView1 side by side with a CLIstVIew1 and now I want
to change the view to a different CTreeView2 side by side to a
The first task I did was to change the OnCreateChild of CMainFrame,
added a static view to m_splittWnd as (1,2); at pane (0,0) I added view
CTreeView1 and a view at pane (0,1) to represent the CListView.
Now I would like to change the view to have at pane (0,0) the CTreeView2
and at (0,1) CFormView2.
Any ideas ... ???
The method at CSWAP does not work only because of the splitterWnd being
used (disclaimer is at MS code).
Quote : It is a lot easier to MF_C_ than to MF_DO_ !!!!!!!!!!!