How To Prevent Static Splitter Bars from Tracking (105150)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.0
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Editions 4.2
- Microsoft Visual C++, 32-bit Editions 5.0
This article was previously published under Q105150 SUMMARY
In addition to providing the ability to dynamically split a single view,
the CSplitterWnd class provides a convenient method of displaying two or
more view classes in a single frame. This type of splitter window is called
a "static splitter." The CSplitterWnd class contains member functions that
allow the splitter bar to be dragged by the mouse or moved using the
keyboard to change the proportionate sizes of the views (or panes, in
splitter terminology) within the frame.
Sometimes it is desirable to fix the initial position of the splitter bars
and not allow the user to move them. This can be accomplished simply by
deriving a class from CSplitterWnd and overriding several members. This
method is outlined below.
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto KbUIDesign kbWndw KB105150 |
---|
|