控件的显示和隐藏 GetDlgItem(IDC_CS_GridCtrl)->EnableWindow(FALSE); //控件禁用 GetDlgItem(IDC_CS_GridCtrl)->EnableWindow(TRUE); //控件使用 GetDlgItem(IDC_CS_GridCtrl)->ShowWindow(FALSE); //控件隐藏 GetDlgItem(IDC_CS_GridCtrl)->ShowWindow(TRUE); //控件显示