CSplitterWnd
.CreateStatic()
.CreateView()
.SetRowInfo()
.GetPane()
class CMainFrame : public CFrameWnd
{
...
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
...
protected:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
//}}AFX_VIRTUAL
...
private:
CSplitterWnd m_wndSplit; // 멤버 변수 등록
};
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
// {
CRect cr;
GetClientRect(&cr);
CSize paneSize(cr.Width() / 2, cr.Height());
m_wndSplit.CreateStatic(this, 1, 2);
int rc = m_wndSplit.CreateView(0, 0, RUNTIME_CLASS(CPractice10_2View), paneSize,
pContext);
if (FALSE == rc) return rc;
rc = m_wndSplit.CreateView(0, 1, RUNTIME_CLASS(CRightViewDlg), paneSize,
pContext);
return rc;
// return TRUE;
// }
// return CFrameWnd::OnCreateClient(lpcs, pContext);
}