SPropertyItemBase::~SPropertyItemBase() { SPOSITION pos = m_childs.GetHeadPosition(); while(pos) { IPropertyItemPtr pChild = m_childs.GetNext(pos); pChild->Release(); } m_childs.RemoveAll(); }
SPropertyItemBase::~SPropertyItemBase() { SPOSITION pos = m_childs.GetHeadPosition(); while(pos) { IPropertyItemPtr pChild = m_childs.GetNext(pos); pChild->Release(); } SPropertyGrid* grid = GetOwner(); grid->RemoveAllGridItem(); m_childs.RemoveAll(); }