IOleControlSite::LockInPlaceActive method (ocidl.h)
Indicates whether a control should remain in-place active. Calls to this method typically nest an event to ensure that the object's activation state remains stable throughout the processing of the event.
HRESULT LockInPlaceActive( [in] BOOL fLock );
Indicates whether to ensure the in-place active state (TRUE) or to allow activation to change (FALSE). When TRUE, a supporting container must not deactivate the in-place object until this method is called again with FALSE.
This method can return the following values.
||The lock or unlock was made successfully.|
||The container does not support in-place locking.|
This method affects the control's in-place active state but not its UI-active state.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|