OriginObject::GetLock

Description

Get data access bits

Syntax

DWORD GetLock( DWORD dwCtrl = OAM_STRUCTURE )

Parameters

dwCtrl
can be one or more of the following bits OAM_DATA, ... (see OBJECTACCESSMASK)

Return

return 0 if not locked, otherwise PLC_WRITE and PLC_READ bits

Examples

EX1

void OriginObject_GetLock_Ex1()
{
        Worksheet wks = Project.ActiveLayer();
        DWORD nRet = wks.GetLock();
        printf("Lock type is %d\n", nRet);
}

Remark

See Also

OriginObject::Lock, OriginObject::Unlock

header to Include

origin.h