The following code shows [0, 0] in the CExtPropertyValueCompound, instead of [0, 1].
It seems synchronizing the store after this code doesn’t refresh the content of the CExtPropertyValueCompound.
So, is there another way to do it?
Thanks.
(Excerpt from the store, which will be put in the property grid:)
{
CExtPropertyValueCompound &position_property
= *new CExtPropertyValueCompound("position");
ItemInsert(&position_property);
v = new CExtPropertyValue("X");
v->DescriptionSet("X");
v->ValueActiveSet(new CExtGridCellVariant(0));
v->ValueDefaultFromActive();
position_property.ItemInsert(v);
v = new CExtPropertyValue("Y");
v->DescriptionSet("Y");
v->ValueActiveSet(new CExtGridCellVariant(0));
v->ValueDefaultFromActive();
position_property.ItemInsert(v);
v->ValueActiveGet()->TextSet("1");
}