CGXProperties::CGXProperties
CGXProperties();
CGXProperties(const CGXProperties& p);
p
A reference to the source property object.
Remarks
Constructs a property object.
A property object can be connected to a grid with CGXGridParam::SetProperties. See the example.
Example
This example shows you how you can create a property-object and connect it to the grid:
void CGridSample4View::OnInitialUpdate()
{
// connect grid with parameter object maintained by document
SetParam(GetDocument()->m_param);
// check if property object is not yet existing
if (GetParam()->GetPropeties() != NULL)
{
// create a property object and connect it with the parameter-object
CGXProperties* pProp = new CGXProperties;
// some default initialization
pProp->AddDefaultUserProperties();
pProp->SetCenterHorizontal(TRUE);
pProp->SetBlackWhite(TRUE);
// Now, read the properties from profile.
// Note that reading properties from profile can override the previous settings.
pProp->SetSection("My Properties"); // extra profile section
pProp->ReadProfile();
// connect property object with parameter object
GetParam()->SetProperties(pProp);
}
}
See Also
CGXGridParam::SetProperties CGXGridCore::OnGridInitialUpdate