文件名称:WTL 切分窗口简单实现.rar
文件大小:212KB
文件格式:RAR
更新时间:2013-02-27 09:59:49
WTL 切分 窗口
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);
【文件预览】:
WTL 切分窗口简单实现
----test.vs2005.suo(106KB)
----test.h(11B)
----test.vs2005.sln(879B)
----resource.h(856B)
----test.vs2005.layout(755B)
----MainDlg.h(5KB)
----stdafx.h(2KB)
----test.cpp(1KB)
----test.vs2005.vcproj(5KB)
----test.rc(8KB)
----AboutDlg.h(2KB)
----Debug()
--------test.exe(796KB)
----stdafx.cpp(281B)
----test.vs2005.cbp(2KB)
----res()
--------test.ico(1KB)
----test.vs2005.vcproj.SINA-ADF65E625F.Administrator.user(1KB)
----test.aps(16KB)