summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog/PropertyList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/MFCDialog/PropertyList.cpp')
-rw-r--r--Source/MFCDialog/PropertyList.cpp15
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)