IOleInPlaceActiveObjectImpl

template< class T >
class IOleInPlaceActiveObjectImpl

Parameters

T Your class, derived from IOleInPlaceActiveObjectImpl.

The IOleInPlaceActiveObject interface assists communication between an in-place control and its container; for example, communicating the active state of the control and container, and informing the control it needs to resize itself. Class IOleInPlaceActiveObjectImpl provides a default implementation of IOleInPlaceActiveObject and implements IUnknown by sending information to the dump device in debug builds.

Related Articles ATL Tutorial, Creating an ATL Project

#include <atlctl.h>

See Also CComControl, ActiveX Controls Interfaces in the Win32 SDK


IOleInPlaceActiveObjectImpl Class Members

IOleWindow Methods
ContextSensitiveHelpEnables context-sensitive help. The ATL implementation returns E_NOTIMPL.
GetWindowGets a window handle.
IOleInPlaceActiveObject Methods
EnableModelessEnables modeless dialog boxes. The ATL implementation returns S_OK.
OnDocWindowActivateNotifies the control when the container's document window is activated or deactivated.The ATL implementation returns S_OK.
OnFrameWindowActivateNotifies the control when the container's top-level frame window is activated or deactivated.
ResizeBorderInforms the control it needs to resize its borders. The ATL implementation returns S_OK.
TranslateAcceleratorProcesses menu accelerator-key messages from the container. The ATL implementation returns E_NOTIMPL.

IOleInPlaceActiveObjectImpl Overview


Methods


IOleInPlaceActiveObjectImpl::ContextSensitiveHelp

HRESULT ContextSensitiveHelp( BOOL fEnterMode );

See IOleWindow::ContextSensitiveHelp in the Win32 SDK.

Remarks

Returns E_NOTIMPL.

IOleInPlaceActiveObjectImpl Overview | Class Members


IOleInPlaceActiveObjectImpl::EnableModeless

HRESULT EnableModeless( BOOL fEnable );

See IOleInPlaceActiveObject::EnableModeless in the Win32 SDK.

Remarks

Returns S_OK.

IOleInPlaceActiveObjectImpl Overview | Class Members


IOleInPlaceActiveObjectImpl::GetWindow

HRESULT GetWindow( HWND* phwnd );

See IOleWindow::GetWindow in the Win32 SDK.

Remarks

The container calls this function to get the window handle of the control. Some containers will not work with a control that has been windowless, even if it is currently windowed. In ATL's implementation, if the CComControl::m_bWasOnceWindowless data member is TRUE, the function returns E_FAIL. Otherwise, if *phwnd is not NULL, GetWindow assigns phwnd to the control class's data member m_hWnd and returns S_OK.

IOleInPlaceActiveObjectImpl Overview | Class Members

See Also CComControl::m_bWasOnceWindowless


IOleInPlaceActiveObjectImpl::OnDocWindowActivate

HRESULT OnDocWindowActivate( BOOL fActivate );

See IOleInPlaceActiveObject::OnDocWindowActivate in the Win32 SDK.

Remarks

Returns S_OK.

IOleInPlaceActiveObjectImpl Overview | Class Members


IOleInPlaceActiveObjectImpl::OnFrameWindowActivate

HRESULT OnFrameWindowActivate( BOOL fActivate );

See IOleInPlaceActiveObject::OnFrameWindowActivate in the Win32 SDK.

Remarks

Returns S_OK.

IOleInPlaceActiveObjectImpl Overview | Class Members


IOleInPlaceActiveObjectImpl::ResizeBorder

HRESULT ResizeBorder( LPRECT prcBorder, IOleInPlaceUIWindow* pUIWindow, BOOL fFrameWindow );

See IOleInPlaceActiveObject::ResizeBorder in the Win32 SDK.

Remarks

Returns S_OK.

IOleInPlaceActiveObjectImpl Overview | Class Members


IOleInPlaceActiveObjectImpl::TranslateAccelerator

HRESULT TranslateAccelerator( LPMSG lpmsg );

See IOleInPlaceActiveObject::TranslateAccelerator in the Win32 SDK.

Remarks

Returns E_NOTIMPL.

IOleInPlaceActiveObjectImpl Overview | Class Members