本文介绍了vc6中的窗口分割器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用createstatic将窗口分为两行.
现在,我想将第一行分为两列..
请帮助我...

I splitted a window into two rows using createstatic.
Now I want to split the first row into two columns..
please help me ...

推荐答案


 //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);


这篇关于vc6中的窗口分割器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 12:30