Rudi
2009-08-21 22:25:38 UTC
I have managed to make a DropDown using the specified Control
(CMFCPropertyGridProperty) the problem is that I need to either get the
value as an enum or an index of that Drop Down. Is this possible without
using strcmp or sth because all I have been able to find is the actual
string, not an index? Here is the code I use to create the DropDown:
CMFCPropertyGridProperty * pProp = new
CMFCPropertyGridProperty(L"DropDown", L"Option2", L"Description");
pProp->AddOption(L"Option1");
pProp->AddOption(L"Option2");
pProp->AddOption(L"Option3");
pProp->AllowEdit(FALSE);
Thanks in advance
(CMFCPropertyGridProperty) the problem is that I need to either get the
value as an enum or an index of that Drop Down. Is this possible without
using strcmp or sth because all I have been able to find is the actual
string, not an index? Here is the code I use to create the DropDown:
CMFCPropertyGridProperty * pProp = new
CMFCPropertyGridProperty(L"DropDown", L"Option2", L"Description");
pProp->AddOption(L"Option1");
pProp->AddOption(L"Option2");
pProp->AddOption(L"Option3");
pProp->AllowEdit(FALSE);
Thanks in advance