CSplitterWnd::CreateStaticVisual Studio 2005 To create a static splitter window, call the CreateStatic member function. virtual BOOL CreateStatic( CWnd* pParentWnd, int nRows, int nCols, DWORD dwStyle = WS_CHILD | WS_VISIBLE, UINT nID = AFX_IDW_PANE_FIRST ); Parameters
A CSplitterWnd is usually embedded in a parent CFrameWnd or CMDIChildWnd object by taking the following steps:
A static splitter window contains a fixed number of panes, often from different classes. When you create a static splitter window, you must at the same time create all its panes. The CreateView member function is usually used for this purpose, but you can create other nonview classes as well. The initial minimum row height and column width for a static splitter window is 0. These minimums, which determine when a pane is too small to be shown in its entirety, can be changed with the SetRowInfo and SetColumnInfo member functions. To add scroll bars to a static splitter window, add the WS_HSCROLL and WS_VSCROLL styles to dwStyle. See "Splitter Windows" in the article Multiple Document Types, Views, and Frame Windows, Technical Note 29, and the CSplitterWndclass overview for more on static splitter windows. |
|