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:
Note In order to use dynamic splitters in this sample, you need to comment out the following line in the mainfrm.cpp file.
#define WCE_DYNAMIC_SPLITTER
STASPLIT initializes the main application window with four panes, using the static splitter window form. You 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:
You can find the STASPLIT project files in the Wce\Samples\Mfc\STASPLIT directory.
For information on the Windows CE platforms that support this sample, see MFC for Windows CE Samples.