Implementing IOleInPlaceActiveObject

The IOleInPlaceActiveObject interface allows the host to manipulate the ActiveX Designer while it is active. The interface provides a direct channel of communication between the active visual designer and its frame. The interface includes the five methods listed in the table.

Method

Description

EnableModeless

Enables or disables modeless dialog boxes.

OnDocWindowActivate

State of container document window.

OnFrameWindowActivate

State of container's top-level frame.

ResizeBorder

Alerts object of need to resize border space.

TranslateAccelerator

Translates messages.


Of these five methods, only the TranslateAccelerator method is relevant to ActiveX Designers. However, you must implement the other methods and they must return S_OK rather than E_NOTIMPL. See the  COM Programmer's Reference in the Platform Software Development Kit (SDK) of MSDN for details on IOleInPlaceActiveObject.