I have a multiple view SDI project. One of the views has to be split, probably with CSplitterWnd or CSplitterWndEx. But the other views should not be split, and should not have the split buttons and scrollbars. I tried various combinations using CSplitterWnd and some classes derived from it which I found online, but I can't get what I need. So here are the constraints:
One view is CViewUnsplit, without splitter
The second view displays initially only CViewSplitLeft
A command allows the user to split/unsplit and add or remove CViewRight.
It should work in the following way.
The first is CViewUnsplit is just the way a simple SDI application comes up.
The second switched view can be easily achived in just swapping the view. This is well documented. The basics are shown here in this sample with two views http://msdn.microsoft.com/en-us/library/s199bks0.aspx
The third is a little tricky. Just create the splitter and place the CViewSplitLeft with SetParent into the left splitter part. The right view can always stay in the splitter. Again here the splitter is just hidden in the main window. When you switch back to another view just Use SetParent again and move the CViewSplitLeft to the CMainFrame.
Always just hide all unneeded views. Take care about the IDs of the views as shown in the sample. Otherwise the resizing will not work.