单文档 分栏问题
使用CSplitterWnd类给单文档主窗口分栏,
用到
- C/C++ code
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CFormLeft),CSize(200,100),pContext)
CFormLeft 继承自CFormView 类
请问,我如何访问这个CFormLeft 子窗口中的控件
[解决办法]
CSplitterWnd::GetPane
CWnd* GetPane( int row, int col );
Return Value
Returns the pane at the specified row and column. The returned pane is usually a CView-derived class.
Parameters
row
Specifies a row.
col
Specifies a column.
[解决办法]
CFormLeft* pForm = (CFormLeft*)m_wndSplitter.GetPane(0,0);
[解决办法]