CFormview上Scrollbar控制问题
m_wndSplitter.DeleteView(0,1);
m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CConfiguration),
CSize(rcRight.Width(),rcRight.Height()),NULL);
m_wndSplitter.RecalcLayout();
CView* pPView=(CView*)m_wndSplitter.GetPane(0,1);
CRect rect;
CRect rectSR;
pPView->GetDlgItem(IDC_STATIC_PeSituation)->GetWindowRect(&rectSR);
ScreenToClient(rectSR);
GetClientRect(&rect);
pPView->ScrollWindow(0,rect.right,rectSR);
pPView->SetScrollPos(SB_VERT,rectSR.bottom,TRUE);
我在分割出来的窗口上控件其Scrollbar定位到某个控件上,类似拉滚动条到控件位置,但是结果在rectSR.bottom位置上重绘了界面,请问这个Scrollbar控制该怎么做?