void StretchHeaderView::SetSectionHidden(int logical, bool hidden) { if(hidden) { HideSection(logical); } else { ShowSection(logical); AssertMinimalColumnWidth(logical); } }
void CMarmaladeMainOptionsHolder::SetExpertMode(bool bExpert) { const int count = GetSectionCount(); for (int i = 0; i < count; i++) { const SECTION_RECORD* pRec = GetSectionInfo(i); if (NULL == pRec) continue; CMarmaladeSettingsSection* pSection = dynamic_cast<CMarmaladeSettingsSection*>(pRec->pSection); if (NULL != pSection) { if (pSection->IsDetailed()) { ShowSection(i, bExpert); } else { ShowSection(i, !bExpert); } } } }