diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-09-20 19:29:41 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-09-20 19:29:41 (GMT) |
commit | b341539bc1b669431bc89902de202233408ad85f (patch) | |
tree | eab5c4e45a6708a10d661b81b3b7b4bd6ba7a7b7 /Source/MFCDialog/PropertyList.cpp | |
parent | baa28efd107a3efa821034a64a1c737d3c58ad89 (diff) | |
download | CMake-b341539bc1b669431bc89902de202233408ad85f.zip CMake-b341539bc1b669431bc89902de202233408ad85f.tar.gz CMake-b341539bc1b669431bc89902de202233408ad85f.tar.bz2 |
ENH: check for values that switch to internal, can happen with a load cache command
Diffstat (limited to 'Source/MFCDialog/PropertyList.cpp')
-rw-r--r-- | Source/MFCDialog/PropertyList.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/MFCDialog/PropertyList.cpp b/Source/MFCDialog/PropertyList.cpp index e5b347b..a114100 100644 --- a/Source/MFCDialog/PropertyList.cpp +++ b/Source/MFCDialog/PropertyList.cpp @@ -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() { |