首页 相关文章 VC在单文档界面中怎样将视类区分割为两部分?

VC在单文档界面中怎样将视类区分割为两部分?

OnCreateClient是虚函数
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class

// 创建拆分窗口
if(!m_SplitterWnd.CreateStatic(this,2,1))
return FALSE;

CRect clRect;
GetClientRect(&clRect);
CSize clSize=clRect.Size();
int y=(int)clSize.cy/2-10;

//Create CTestDownView
if(!m_SplitterWnd.CreateView(0,0,RUNTIME_CLASS(CTestDownView),CSize(0,y),pContext))
return FALSE;

//Create CContainerView
if(!m_SplitterWnd....[ 查看全文 ]

2016-02-19 标签:

VC在单文档界面中怎样将视类区分割为两部分?的相关文章

手机页面
收藏网站 回到头部