CSetupView是CFormView的派生类,一起动就最大化, 在CSetupView里我方了一个CListCtrl m_list,我想让m_list充满整个右部的Client区(左部放了一个CTreeCtrl),但总得不到正确的大小,总是比实际的小。请问问题处在哪里?void CSetupView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
// TODO: Add your specialized code here and/or call the base class RECT rect; GetParentFrame()->GetClientRect(&rect);
m_list.MoveWindow(&rect);
}
{
CFormView::OnInitialUpdate();
// TODO: Add your specialized code here and/or call the base class RECT rect; GetParentFrame()->GetClientRect(&rect);
m_list.MoveWindow(&rect);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货