A CSplitterWnd object is usually embedded in a parent CFrameWnd or CMDIChildWnd object. Create a CSplitterWnd object using the following steps:
1.Embed a CSplitterWnd member variable in the parent frame.
1.在CMainFrame里加入一个CSplitterWnd 类型的变量
2.Override the parent frame's CFrameWnd::OnCreateClient member function.
2.重写CFrameWnd::OnCreateClient member function
3.From within the overridden OnCreateClient, call the Create or CreateStatic member function of CSplitterWnd.
3.调用Create或者CreateStatic方法 of CSplitterWnd。