OBJGetProtectΒΆ

OBJGetProtect returns flags.

nProtect = OBJGetProtect(hobj)

Parameters

nProtect

nProtect is a combination of attributes. See OBJSetProtect.

hobj

hobj identifies a line, text, rectangle, ellipse or layer (diagram) object.

if ((OBJGetProtect(hRect) & BL_HIDE) != BL_HIDE) {
    // not hidden
}
// switch off hidden:
nProtect = OBJGetProtect(hRect);
OBJSetProtect(hRect, nProtect & ~BL_HIDE);

id-638689