Code:
    CWnd* pTree = GetDlgItem( IDC_TREE1 );
    pTree->ShowWindow( SW_HIDE );