VS2010 C++创建多视区窗口

时间:2021-06-14 17:45:25
【文件属性】:

文件名称:VS2010 C++创建多视区窗口

文件大小:51KB

文件格式:RAR

更新时间:2021-06-14 17:45:25

MFC

BOOL CMainFrame::OnCreateClient( LPCREATESTRUCT /*lpcs*/, CCreateContext* pcc) { // create splitter window if (!m_wndSplitter.CreateStatic(this, 1, 2)) return FALSE; // Create left and right pane/views. // CSplitterWnd& sw = m_wndSplitter; if (!sw.CreateView(0,0,RUNTIME_CLASS(CLeftView), CSize(CXLIST,100), pcc) || !sw.CreateView(ROWFORMVIEW, COLFORMVIEW, FormData.GetViewClass(FormData.GetCurrentForm()), CSize(0,0), // will get fixed in CMainFrame::OnCreate pcc) ) { TRACE("***CMainFrame: failed to create splitter views\n"); sw.DestroyWindow(); return FALSE; } // Double-check for ON_NOTIFY in message map above ASSERT(AFX_IDW_PANE_FIRST == sw.IdFromRowCol(0,0)); return TRUE; }


【文件预览】:
FormSwap2.vcxproj.user
FormSwap2.dsp
View4.h
LeftView.cpp
MySplit.cpp
FormSwap2.rc
Doc.cpp
View4.cpp
StatLink.cpp
View3.cpp
View1.h
Doc.h
LeftView.h
Forms.cpp
HyprLink.cpp
StatLink.h
RES
----app.ico(1KB)
----Toolbar.bmp(598B)
----app.rc2(395B)
----Doc.ico(766B)
----msj.avi(49KB)
View2.h
TraceWin.h
FormSwap2.cpp
View3.h
FormSwap2.dsw
StdAfx.cpp
MainFrm.cpp
resource.h
View2.cpp
Forms.h
FormSwap2.sln
MainFrm.h
StdAfx.h
View1.cpp
HyprLink.h
FormSwap2.mak
FormSwap2.h
FormSwap2.vcxproj
FormSwap2.vcxproj.filters
MySplit.h

网友评论