IOleControlImpl Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at IOleControlImpl Class.

This class provides a default implementation of the IOleControl interface and implements IUnknown.

Important

This class and its members cannot be used in applications that execute in the Windows Runtime.

Syntax

template<class T>
class IOleControlImpl

Parameters

T
Your class, derived from IOleControlImpl.

Members

Public Methods

Name Description
IOleControlImpl::FreezeEvents Indicates whether or not the container ignores or accepts events from the control.
IOleControlImpl::GetControlInfo Fills in information about the control's keyboard behavior. The ATL implementation returns E_NOTIMPL.
IOleControlImpl::OnAmbientPropertyChange Informs a control that one or more of the container's ambient properties has changed. The ATL implementation returns S_OK.
IOleControlImpl::OnMnemonic Informs the control that a user has pressed a specified keystroke. The ATL implementation returns E_NOTIMPL.

Remarks

Class IOleControlImpl provides a default implementation of the IOleControl interface and implements IUnknown by sending information to the dump device in debug builds.

Related Articles ATL Tutorial, Creating an ATL Project

Inheritance Hierarchy

IOleControl

IOleControlImpl

Requirements

Header: atlctl.h

IOleControlImpl::FreezeEvents

In ATL's implementation, FreezeEvents increments the control class's m_nFreezeEvents data member if bFreeze is TRUE, and decrements m_nFreezeEvents if bFreeze is FALSE.

HRESULT FreezeEvents(BOOL bFreeze);

Remarks

FreezeEvents then returns S_OK.

See IOleControl::FreezeEvents in the Windows SDK.

IOleControlImpl::GetControlInfo

Fills in information about the control's keyboard behavior.

HRESULT GetControlInfo(LPCONTROLINFO pCI);

Remarks

See IOleControl:GetControlInfo in the Windows SDK.

Return Value

Returns E_NOTIMPL.

IOleControlImpl::OnAmbientPropertyChange

Informs a control that one or more of the container's ambient properties has changed.

HRESULT OnAmbientPropertyChange(DISPID dispid);

Return Value

Returns S_OK.

Remarks

See IOleControl::OnAmbientPropertyChange in the Windows SDK.

IOleControlImpl::OnMnemonic

Informs the control that a user has pressed a specified keystroke.

HRESULT OnMnemonic(LPMSG pMsg);

Return Value

Returns E_NOTIMPL.

Remarks

See IOleControl::OnMnemonic in the Windows SDK.

See Also

IOleObjectImpl Class
ActiveX Controls Interfaces
Class Overview