summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog
diff options
context:
space:
mode:
Diffstat (limited to 'Source/MFCDialog')
-rw-r--r--Source/MFCDialog/PropertyList.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/MFCDialog/PropertyList.cpp b/Source/MFCDialog/PropertyList.cpp
index 731e870..8765fa8 100644
--- a/Source/MFCDialog/PropertyList.cpp
+++ b/Source/MFCDialog/PropertyList.cpp
@@ -736,6 +736,12 @@ void CPropertyList::OnDelete()
this->HideControls();
this->SetTopIndex(0);
InvalidateList();
+ m_curSel += 1;
+ if(m_curSel > this->GetCount())
+ {
+ m_curSel = this->GetCount();
+ }
+ this->SetCurSel(m_curSel);
}
void CPropertyList::OnHelp()