Share via


COleControl::LockInPlaceActive

Prevents the container from deactivating your control.

BOOL LockInPlaceActive(
   BOOL bLock 
);

Parameters

  • bLock
    TRUE if the in-place active state of the control is to be locked; FALSE if it is to be unlocked.

Return Value

Nonzero if the lock was successful; otherwise 0.

Remarks

Note that every locking of the control must be paired with an unlocking of the control when finished. You should only lock your control for short periods, such as while firing an event.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

Other Resources

COleControl Members