ENH: check for values that switch to internal, can happen with a load cache command

This commit is contained in:
Ken Martin
2001-09-20 15:29:41 -04:00
parent baa28efd10
commit b341539bc1
3 changed files with 16 additions and 10 deletions
+14
View File
@@ -614,6 +614,20 @@ void CPropertyList::OnRButtonUp( UINT nFlags, CPoint point )
rect.TopLeft().y + point.y, this, NULL);
}
void CPropertyList::RemoveProperty(const char* name)
{
for(int i =0; i < this->GetCount(); ++i)
{
CPropertyItem* pItem = (CPropertyItem*) GetItemDataPtr(i);
if(pItem->m_propName == name)
{
m_PropertyItems.erase(pItem);
delete pItem;
this->DeleteString(i);
return;
}
}
}
void CPropertyList::OnDelete()
{