Export (0) Print
Expand All

IOleInPlaceSite::CanInPlaceActivate method

Determines whether the container can activate the object in place.

Syntax


HRESULT CanInPlaceActivate();

Parameters

This method has no parameters.

Return value

This method returns S_OK on success. Other possible return values include the following.

Return codeDescription
S_FALSE

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

E_UNEXPECTED

An unexpected error has occurred.

 

Remarks

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

Notes to Callers

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OleIdl.h

IDL

OleIdl.Idl

IID

IID_IOleInPlaceSite is defined as 00000119-0000-0000-C000-000000000046

See also

IOleInPlaceSite

 

 

Community Additions

ADD
Show:
© 2014 Microsoft