SetPosition
Set Layer area [and units]
BOOL SetPosition( const double * pVals, int nUnits = -1, DWORD dwCtrl = OCD_ASK )
return true for success
EX1
//Set the active graph layer's position. void Layer_SetPosition_ex1(double left, double top) { double xx[4], yy[4]; GraphLayer gl = Project.ActiveLayer(); int nCurrent = gl.GetPosition(yy); yy[2] = left; yy[3] = top; gl.SetPosition(yy); }
Layer::GetPosition, Layer::UnitsConvert
origin.h