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
IOleWindow Methods | |
ContextSensitiveHelp | Enables context-sensitive help. The ATL implementation returns E_NOTIMPL. |
GetWindow | Gets a window handle. |
IOleInPlaceActiveObject Methods | |
EnableModeless | Enables modeless dialog boxes. The ATL implementation returns S_OK. |
OnDocWindowActivate | Notifies the control when the container's document window is activated or deactivated.The ATL implementation returns S_OK. |
OnFrameWindowActivate | Notifies the control when the container's top-level frame window is activated or deactivated. |
ResizeBorder | Informs the control it needs to resize its borders. The ATL implementation returns S_OK. |
TranslateAccelerator | Processes menu accelerator-key messages from the container. The ATL implementation returns E_NOTIMPL. |
IOleInPlaceActiveObjectImpl Overview
HRESULT ContextSensitiveHelp( BOOL fEnterMode );
See IOleWindow::ContextSensitiveHelp in the Win32 SDK.
Remarks
Returns E_NOTIMPL.
IOleInPlaceActiveObjectImpl Overview | Class Members
HRESULT EnableModeless( BOOL fEnable );
See IOleInPlaceActiveObject::EnableModeless in the Win32 SDK.
Remarks
Returns S_OK.
IOleInPlaceActiveObjectImpl Overview | Class Members
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
HRESULT OnDocWindowActivate( BOOL fActivate );
See IOleInPlaceActiveObject::OnDocWindowActivate in the Win32 SDK.
Remarks
Returns S_OK.
IOleInPlaceActiveObjectImpl Overview | Class Members
HRESULT OnFrameWindowActivate( BOOL fActivate );
See IOleInPlaceActiveObject::OnFrameWindowActivate in the Win32 SDK.
Remarks
Returns S_OK.
IOleInPlaceActiveObjectImpl Overview | Class Members
HRESULT ResizeBorder( LPRECT prcBorder, IOleInPlaceUIWindow* pUIWindow, BOOL fFrameWindow );
See IOleInPlaceActiveObject::ResizeBorder in the Win32 SDK.
Remarks
Returns S_OK.
IOleInPlaceActiveObjectImpl Overview | Class Members
HRESULT TranslateAccelerator( LPMSG lpmsg );
See IOleInPlaceActiveObject::TranslateAccelerator in the Win32 SDK.
Remarks
Returns E_NOTIMPL.