1.添加OnInitialUpdate()
2.添加控件成员变量
void CFS_DataView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
// TODO: Add your specialized code here and/or call the base class
CRect rect;
GetWindowRect( &rect );
if (m_wndlist.GetSafeHwnd())
{
m_wndlist.MoveWindow(CRect(0,22,rect.Width(),rect.Height()-20),TRUE);
}
}
新闻热点
疑难解答