Free Web Site - Free Web Space and Site Hosting - Web Hosting - Internet Store and Ecommerce Solution Provider - High Speed Internet
Search the Web

Split View

VC++ (MFC) Tips :    View Class and View Obect


   Step 1.   Add code into definition file of the CChildFrame class:

protected:
CSplitterWnd    m_SWnd;

 

   Step2.   Add Overriden code into the implement file:

BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
    // TODO: Add your specialized code here and/or call the base class
        return m_SWnd.Create(this,2,2,CSize(20,20), pContext);   //split the view into 2 x 2 sub-views which sizes are 20 by 20
}


Copyright (c) 1999 - 2001, robert han, all rigths are reserved.