Partager via


IOleInPlaceSite::CanInPlaceActivate (Compact 2013)

3/26/2014

Determines whether or not the container can activate the object in place.

Syntax

HRESULT CanInPlaceActivate();

Return Value

This method supports the following return values:

Value

Description

S_OK

The container allows in-place activation for this object.

S_FALSE

The container does not allow in-place activation for this object.

E_INVALIDARG

The call was made with an invalid argument.

E_UNEXPECTED

The call to the method failed.

Remarks

Only objects being displayed as DVASPECT_CONTENT can be activated in place.

Notes to Callers

IOleInPlaceSite::CanInPlaceActivate is called by the client site's immediate child object when this object must activate in place. This function allows the container application to accept or refuse the activation request.

Requirements

Header

Oleidl.h

See Also

Reference

IOleInPlaceSite