在formview中调用函数时会出错,说是ConstructList 的hwnd=???,应该怎样改呢?void CSwitchFormView::OnSize(UINT nType, int cx, int cy)
{
CFormView::OnSize(nType, cx, cy);
// TODO: Add your message handler code here
CListCtrl* ConstructList;
ConstructList = (CListCtrl*) GetDlgItem(IDC_LISTCONTROLF); ConstructList->MoveWindow(0,0,cx,cy);
}
{
CFormView::OnSize(nType, cx, cy);
// TODO: Add your message handler code here
CListCtrl* ConstructList;
ConstructList = (CListCtrl*) GetDlgItem(IDC_LISTCONTROLF); ConstructList->MoveWindow(0,0,cx,cy);
}
if(ConstructList != NULL )
ConstructList->MoveWindow(...);
ConstructList = (CListCtrl*) GetDlgItem(IDC_LISTCONTROLF);
if(ConstructList && ConstructList->m_hWnd)
ConstructList->MoveWindow(0,0,cx,cy);