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 following table:
Method | Description |
EnableModeless | Enables or disables modeless dialog boxes. |
OnDocWindowActivate | Reports state of container document window. |
OnFrameWindowActivate | Reports 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) for details on IOleInPlaceActiveObject.