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.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/MFCDialog/PropertyList.cpp b/Source/MFCDialog/PropertyList.cpp
index 5c69967..a4b2aea 100644
--- a/Source/MFCDialog/PropertyList.cpp
+++ b/Source/MFCDialog/PropertyList.cpp
@@ -144,10 +144,8 @@ int CPropertyList::AddProperty(const char* name,
}
}
// if it is not found, then create a new one
- int nIndex = AddString(_T(""));
pItem = new CPropertyItem(name, value, type, comboItems);
- SetItemDataPtr(nIndex,pItem);
- return nIndex;
+ return this->AddPropItem(pItem);
}
int CPropertyList::OnCreate(LPCREATESTRUCT lpCreateStruct)