Implementing IOleInPlaceObject

The IOleInPlaceObject interface manages the activation and deactivation of in-place objects and determines how much of the in-place object should be visible. Each ActiveX designer object (either design-time or run-time) that presents a user interface must implement this interface to support in-place activation. Hosts call its methods to activate and deactivate the visual interface.

The interface includes the four methods listed in the following table. The InPlaceDeactivate, UIDeactivate, and SetObjectRects methods are required. ReactivateAndUndo is optional for ActiveX designers. If you choose not to implement it, return E_NOTIMPL.

Method Description
InPlaceDeactivate Deactivates an active in-place designer (required).
ReactivateAndUndo Reactivates a previously deactivated designer (optional).
SetObjectRects Defines the portion of the in-place designer that should be visible (required).
UIDeactivate Deactivates and removes the user interface of the active designer (required).

See the COM Programmer's Reference in the Platform Software Development Kit (SDK) for more information on IOleInPlaceObject.