Click here to Skip to main content
15,913,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends ,
Please help ...

I am creating the mdi application within which i need to split the view
on clicking of the menu item . I am able to split it in on onCreateClient() of CChildFrame as follow .

CSplitterWnd m_splitter ;
C#
if (!m_splitter.CreateStatic(this,1,2))
    {
        return FALSE ;
    }
    if (!m_splitter.CreateView(0,0,RUNTIME_CLASS(CFrmTree),CSize(600,100),pContext))
    {
        return FALSE ;

    }
    if (!m_splitter.CreateView(0,1,RUNTIME_CLASS(CTempClass),CSize(600,100),pContext))
    {
        return FALSE ;

    }


But I dont understand how to split outside OnCreateClient().
For any more information kindly let me know.
Thanks.........
Posted

1 solution

Try to use the same construction
with the replacing of the pContext pointer by NULL :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900