AddObject Method

WRAPPER_API bool AddObject(const DisplayObject& child)

 

WRAPPER_API bool AddObject(const BmgChar * GCCode, ObjectType type, long folderID)

Description

Adds an object to the view.
 

Example

void DataView_AddObject(GEOCALCPBW_NAMESPACE::DataView & dataView)

{

if (dataView.get_IsLoaded())

{

_towchar gcCode ("DEGREES");

ObjectType type = GEOCALCPBW_NAMESPACE::GeoBase::AngularUnitType;

long folderID = DataView::GetFolderIDByObjectType(type);

if (!dataView.AddObject(gcCode.c_str(), type, folderID))

{

AfxMessageBox("AddObject failed");

}

}

}