2.2.4.27.13 MatrixLayer::Open

Description

Opens a new matrix from the supplied OGM file and attaches it to the object.

Syntax

BOOL Open( LPCSTR lpcszFileName, int nOption = CREATE_VISIBLE )

Parameters

lpcszFileName
[input] the OGM file name
nOption
[input] visibility determined by CREATE_TEMP etc (OC_const.h).

Return

TRUE for success; otherwise FALSE.

Examples

EX1

//Opens a new matrix from the supplied OGM file and attaches it to the object. 
void MatrixLayer_Open_Ex1()
{
    MatrixLayer mat;
    string strOGM = GetOpenBox("*.ogm");
    int nOption = CREATE_VISIBLE_SAME;
    BOOL bRet = mat.Open(strOGM, nOption);
    out_int("bRet = ", bRet);
}

Remark

See Also

Header to Include

origin.h