重写OnSize()问题
benz_ 2007-08-12 12:51:14 void CDBDialogView::OnSize(UINT nType, int cx, int cy)
{
CFormView::OnSize(nType,cx,cy);
CRect rect;
this->GetClientRect(&rect);
m_tree1.SetWindowPos(&m_tree1,rect.left,rect.top,rect.Width(),rect.Height(),SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE);
return;
}
CDBDialogView为CFormView派生,m_tree1是CDBDialogView的tree控件。
调整窗口大小时tree控件怎么大小不变呢?