The CUsefulSplitterWnd
class presents two extensions to CSplitterWnd
.
- The first extension is the ability to lock the bar in position so that it can no longer be moved.
m_wndSplitter.LockBar(TRUE);
m_wndSplitter.LockBar(FALSE);
- The second extension allows the views in each pane to be changed dynamically using the
ReplaceView()
method.
m_wndSplitter.ReplaceView(0,1,RUNTIME_CLASS(CForm1),CSize(100,100));
This would replace the view in row 0, column 1 with CForm1
and with a minimum size of 100x100.
All articles are supplied as-is, as a howto on a particular task that worked for me in the past. None of the articles are supposed to be out-of-the-box freeware controls and nor should they be treated as such. Caveat emptor.
Now living and working in Australia, trying to be involved in the local .NET and Agile communities when I can.
I spend a good chunk of my spare time building
OpenCover and maintaining
PartCover both of which are Code Coverage utilities for
.NET.