IOleControlImpl Class

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see IOleControlImpl Class on docs.microsoft.com. This class provides a default implementation of the IOleControl interface and implements IUnknown.

System_CAPS_ICON_important.jpg Important

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

template<class T>
class IOleControlImpl

Parameters

T
Your class, derived from IOleControlImpl.

Public Methods

NameDescription
IOleControlImpl::FreezeEventsIndicates whether or not the container ignores or accepts events from the control.
IOleControlImpl::GetControlInfoFills in information about the control's keyboard behavior. The ATL implementation returns E_NOTIMPL.
IOleControlImpl::OnAmbientPropertyChangeInforms a control that one or more of the container's ambient properties has changed. The ATL implementation returns S_OK.
IOleControlImpl::OnMnemonicInforms the control that a user has pressed a specified keystroke. The ATL implementation returns E_NOTIMPL.

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

IOleControl

IOleControlImpl

Header: atlctl.h

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.

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.

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.

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.

IOleObjectImpl Class
ActiveX Controls Interfaces
Class Overview

Show: