我有一个单文档现在已利用静态分割成了两部分
||||||||||||||||||||||||||
|              |         |
|A             |B        |
||||||||||||||||||||||||||
我想往A中加入一个BUtton,或者一个Dialog怎么加啊,谢谢高手们。
this->m_splitterWnd.CreateStatic(this, 1, 2);
this->m_splitterWnd.CreateView(0, 0, RUNTIME_CLASS(CSegWind2View), CSize(100, 100), pContext);
this->m_splitterWnd.CreateView(0, 1, RUNTIME_CLASS(CSegWind2View), CSize(100, 100), pContext);
这是切分的代码。
我想要的是当控件加入A中时,拖动A控件可以跟着变化,而不是像下面的代码这样,固定在一个地方不动。
CRect rect(0,0,190,180); 
m_button.Create(_T("TestButton"), WS_CHILD|WS_VISIBLE, rect , this, 9);