diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-11 14:20:11 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-11 14:20:11 (GMT) |
commit | 7d70285c867812be9ff23b3bec7c8e79548d2e69 (patch) | |
tree | 67d0499ad38b48c23651cc2a7801baa990f98fd3 /Source/MFCDialog/PropertyList.cpp | |
parent | 8e15a1ede734f8422b0ba33c7e5c4ec2d384ce25 (diff) | |
download | CMake-7d70285c867812be9ff23b3bec7c8e79548d2e69.zip CMake-7d70285c867812be9ff23b3bec7c8e79548d2e69.tar.gz CMake-7d70285c867812be9ff23b3bec7c8e79548d2e69.tar.bz2 |
ENH: add IGNORE option for cache values
Diffstat (limited to 'Source/MFCDialog/PropertyList.cpp')
-rw-r--r-- | Source/MFCDialog/PropertyList.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/MFCDialog/PropertyList.cpp b/Source/MFCDialog/PropertyList.cpp index a114100..7aa9df3 100644 --- a/Source/MFCDialog/PropertyList.cpp +++ b/Source/MFCDialog/PropertyList.cpp @@ -50,6 +50,7 @@ BEGIN_MESSAGE_MAP(CPropertyList, CListBox) ON_BN_CLICKED(IDC_PROPCHECKBOXCTRL, OnCheckBox) ON_COMMAND(42, OnDelete) ON_COMMAND(43, OnHelp) + ON_COMMAND(44, OnIgnore) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// @@ -607,6 +608,7 @@ void CPropertyList::OnRButtonUp( UINT nFlags, CPoint point ) BOOL loc; m_curSel = ItemFromPoint(point,loc); menu.CreatePopupMenu(); + menu.AppendMenu(MF_STRING | MF_ENABLED, 44, "Ignore Cache Entry"); menu.AppendMenu(MF_STRING | MF_ENABLED, 42, "Delete Cache Entry"); menu.AppendMenu(MF_STRING | MF_ENABLED, 43, "Help For Cache Entry"); menu.TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, @@ -629,6 +631,19 @@ void CPropertyList::RemoveProperty(const char* name) } } +void CPropertyList::OnIgnore() +{ + if(m_curSel == -1 || this->GetCount() <= 0) + { + return; + } + CPropertyItem* pItem = (CPropertyItem*) GetItemDataPtr(m_curSel); + pItem->m_curValue = "IGNORE"; + InvalidateList(); +} + + + void CPropertyList::OnDelete() { if(m_curSel == -1 || this->GetCount() <= 0) |