拆分窗口大小设置问题
我用下面代码建立了如下图所示的拆分窗口,
if(m_wndSplitter1.CreateStatic(this,1,2)==NULL)
return FALSE;
m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CNavView),CSize(120,100), pContext);
if(m_wndSplitter2.CreateStatic(&m_wndSplitter1,2,1,WS_CHILD|WS_VISIBLE,
m_wndSplitter1.IdFromRowCol(0, 1))==NULL)
return FALSE;
m_wndSplitter2.CreateView(0,0,RUNTIME_CLASS(CCOMViewView),CSize(400,400),pContext);
m_wndSplitter2.CreateView(1,0,RUNTIME_CLASS(COutPutView),CSize(400,100),pContext);
// split into 3 panes : +-----+--------+
// | | |
// + | |
// | | |
// + +---+----+
// | | |
// +--+--+--------+
初始大小可以设定。 我现在想要的效果是无论是外部窗口最大化或者是手动拉大拉小,
保持右下脚的窗口大小不改变(当然可以通过分割条改变大小)。
请问怎么样才能做到,谢谢!