WTL 切分窗口简单实现, 利用 CSplitterWindow
// 创建切分窗口容器
CRect lSplitWndRect;
GetClientRect(lSplitWndRect);
HWND hWnd = mMainSplitWnd.Create(*this, lSplitWndRect, //CWindow::rcDefault,
NULL,
CControlWinTraits::GetWndStyle(0),
CControlWinTraits::GetWndExStyle(0),
IDD_DIALOG_SPLIR_CONTAINER);
ATLASSERT(hWnd);
mMainSplitWnd.SetSplitterExtendedStyle(SPLIT_PROPORTIONAL);
//创建左侧切分窗口
hWnd = mWndLeft.Create(mMainSplitWnd, NULL, NULL,
CControlWinTraits::GetWndStyle(0),
CControlWinTraits::GetWndExStyle(0),
IDD_DIALOG_SPLIT_LEFT);
ATLASSERT(hWnd);
hWnd = mWndRight.Create(mMainSplitWnd, NULL, NULL,
CControlWinTraits::GetWndStyle(0),
CControlWinTraits::GetWndExStyle(0),
IDD_DIALOG_SPLIT_RIGHT);
ATLASSERT(hWnd);