This topic has not yet been rated - Rate this topic

IOleControlSite::LockInPlaceActive method

Applies to: desktop apps only

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.

Syntax

HRESULT LockInPlaceActive(
  [in]  BOOL fLock
);

Parameters

fLock [in]

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.

Return value

This method can return the following values.

Return codeDescription
S_OK

The lock or unlock was made successfully.

E_NOTIMPL

The container does not support in-place locking.

 

Remarks

This method affects the control's in-place active state but not its UI-active state.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IOleControlSite is defined as B196B289-BAB4-101A-B69C-00AA00341D07

See also

IOleControlSite

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ