Discussion:
CMFCPropertyGridProperty
(too old to reply)
Rudi
2009-08-21 22:25:38 UTC
Permalink
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
Mehmet Ata BODUR
2010-09-01 11:43:35 UTC
Permalink
I have the same problem... Also is it possible to change the behavior of bool from True/False to Yes/No? I mean when I set the property to true I want to see Yes, when I set it to No, I want to see No...

Thanks in advance
Post by Rudi
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
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
Submitted via EggHeadCafe - Software Developer Portal of Choice
ObjectDumper LINQ To Export Collection Via .NET Reflection
http://www.eggheadcafe.com/tutorials/aspnet/21737599-5a63-4672-a32c-a36cca282a3f/objectdumper-linq-to-export-collection-via-net-reflection.aspx
Loading...