Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I splitted a window into two rows using createstatic.
Now I want to split the first row into two columns..
please help me ...
Posted

 
Share this answer
 
here is pseudo code,

 //Main Splitter
m_omSplitter.CreateStatic( this, 2, 1 );     
//Get child of first row ID        
int nChild = m_omSplitter.IdFromRowCol( 0, 0 );   
//Create one more splitter in top with ID as nChild ID that's it.
m_omUpperSplitter.CreateStatic( &m_omSplitter,
                                            1,
                                            2,
                                            WS_CHILD | WS_VISIBLE | WS_BORDER,
                                            nChild );

//Then Initialise views...
m_omSplitter.CreateView(1, 0, RUNTIME_CLASS(CEditView), omSize, pContext);
m_omUpperSplitter.CreateView(0, 0, RUNTIME_CLASS(CListView), omSize, pContext);
m_omUpperSplitter.CreateView(0, 1, RUNTIME_CLASS(CEditView), omSize, pContext);
 
Share this answer
 
v2

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