public bool AddObject(const DisplayObject& child)
public bool AddObject(const BmgChar * GCCode, ObjectType type, long folderID)
Adds an object to the view.
void DataView_AddObject(GeoCalc.DataView & dataView)
{
if (dataView.get_IsLoaded())
{
string gcCode ("DEGREES");
ObjectType type = System.Object.AngularUnitType;
long folderID = DataView.GetFolderIDByObjectType(type);
if (!dataView.AddObject(gcCode.c_str(), type, folderID))
{
AfxMessageBox("AddObject failed");
}
}
}