CSplitterWnd对象ShowWindow的问题.
我在CMainFrame有两个CSplitterWnd对象,
CSplitterWnd *m_wndSplitter2,*m_wndSplitter3;
然后在CMainFrame::OnCreateClient中
m_wndSplitter2=new CSplitterWnd();
this->m_wndSplitter2->CreateStatic(this,2,1);
this->m_wndSplitter2->CreateView(0,0,RUNTIME_CLASS(View1),CSize(0,300),pContext);
this->m_wndSplitter2->CreateView(1,0,RUNTIME_CLASS(View2),CSize(0,0),pContext);
m_wndSplitter3=new CSplitterWnd();
this->m_wndSplitter3->CreateStatic(this,2,1);
this->m_wndSplitter3->CreateView(0,0,RUNTIME_CLASS(View3),CSize(0,300),pContext);
this->m_wndSplitter3->CreateView(1,0,RUNTIME_CLASS(View2),CSize(0,0),pContext);
m_wndSplitter3->ShowWindow(SW_SHOW);
m_wndSplitter2->ShowWindow(SW_HIDE);
然后在CMainFrame别的地方,
m_wndSplitter2->ShowWindow(SW_SHOW);
m_wndSplitter3->ShowWindow(SW_HIDE);
就是把m_wndSplitter2,m_wndSplitter3的显示状态交换一下,结果这样调用后窗口中间是透明的,什么都没有,请问如何解决?谢谢.是不是要重画CMainFrame之类的?