STASPLIT

The STASPLIT sample is used to demonstrate the use of static and dynamic splitter windows. The essential difference between these two forms of splitter window is:

STASPLIT initializes the main application window with four panes, using the static splitter window form. The user can move the splitter window bars between the panes, but cannot change the number of panes. The bottom right pane is created as a dynamic splitter window. The scroll bars in this pane have the splitter box, allowing the bottom right pane to be divided into a maximum of four panes.

Both forms of splitter window are created from the class CSplitterWnd. The dynamic splitter window is formed by using the function Create, whereas a static splitter window is formed by using the function CreateStatic.

Select the menu item Window Split to move the splitter bars. If the bottom right pane has the focus, you can move the dynamic splitter bars, otherwise you can move the static splitter bars.

This sample demonstrates the following keywords:

AfxGetMainWnd

CArchive::IsStoring

CDialog::DoModal

CDocument::OnNewDocument

CEdit::SetReadOnly

CFrameWnd::AddAdornments

CFrameWnd::SetActiveView

CObject::AssertValid

CObject::Dump

CObject::IsKindOf

CSplitterWnd::Create

CSplitterWnd::CreateStatic

CSplitterWnd::CreateView

CSplitterWnd::SplitColumn

CSplitterWnd::SplitRow

CStringArray::SetSize

CView::GetDocument

CWinApp::AddDocTemplate

CWinApp::OnFileNew

CWnd::Create

CWnd::OnCreate

CWnd::ModifyStyle

CWnd::SetWindowText

You can find the STASPLIT project files in the Wce\Samples\Mfc\STASPLIT directory.

To build the STASPLIT sample, follow the procedure described in Building the Sample Applications, selecting one or more of the following project configurations.