CreateCopy
Create a copy of the matrix window matlayerSource and attaches it to the object.
BOOL CreateCopy( MatrixLayer & matlayerSource, int nOption = CREATE_VISIBLE_SAME, DWORD dwCtrl = DCTRL_COPY_DEFAULT )
TRUE for success; otherwise FALSE.
EX1
//Create a copy of matrix window. void MatrixLayer_CreateCopy_Ex1() { MatrixLayer mat; MatrixPage mp = Project.MatrixPages(0); if(!mp) return; MatrixLayer matSource(mp.GetName()); int nOption = CREATE_VISIBLE_SAME; BOOL bRet = mat.CreateCopy(matSource, nOption); out_int("bRet = ", bRet); }
Worksheet::CreateCopy
origin.h