文件名称:MFC 分隔框示例程序
文件大小:27KB
文件格式:RAR
更新时间:2016-04-18 03:32:45
MFC CSplitterWnd 分隔框
创建分隔框 // CMainFrame message handlers BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) { // TODO: Add your specialized code here and/or call the base class if(m_splitter.CreateStatic(this,1,2)==NULL) return FALSE; CRect rect; GetClientRect(rect); m_splitter.CreateView(0, 0, RUNTIME_CLASS(CDialogShow), CSize(rect.Width()/5, 0), pContext); m_splitter.CreateView(0, 1, RUNTIME_CLASS(CNurbsView), CSize(0, 0), pContext); return TRUE; }
【文件预览】:
SpliterDemo.sln
SpliterDemo
----stdafx.cpp(211B)
----SpliterDemo.vcproj.UNMV7ZUGR3P2EIV.Administrator.user(1KB)
----SpliterDemoView.cpp(2KB)
----res()
--------SpliterDemo.ico(21KB)
--------SpliterDemo.rc2(402B)
--------Toolbar.bmp(1KB)
--------SpliterDemoDoc.ico(1KB)
----stdafx.h(2KB)
----SpliterDemoDoc.h(646B)
----DialogShow.cpp(736B)
----DialogShow.h(533B)
----SpliterDemo.h(564B)
----targetver.h(1KB)
----SpliterDemoDoc.cpp(1KB)
----SpliterDemo.rc(13KB)
----MainFrm.cpp(2KB)
----resource.h(634B)
----MainFrm.h(913B)
----SpliterDemoView.h(1KB)
----SpliterDemo.cpp(4KB)
----SpliterDemo.vcproj(6KB)
----ReadMe.txt(5KB)