IOleControlImpl Class
This class provides a default implementation of the IOleControl
interface and implements IUnknown
.
Dôležité
This class and its members cannot be used in applications that execute in the Windows Runtime.
template<class T>
class IOleControlImpl
T
Your class, derived from IOleControlImpl
.
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. |
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);
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);
See IOleControl:GetControlInfo in the Windows SDK.
Returns E_NOTIMPL.
Informs a control that one or more of the container's ambient properties has changed.
HRESULT OnAmbientPropertyChange(DISPID dispid);
Returns S_OK.
See IOleControl::OnAmbientPropertyChange in the Windows SDK.
Informs the control that a user has pressed a specified keystroke.
HRESULT OnMnemonic(LPMSG pMsg);
Returns E_NOTIMPL.
See IOleControl::OnMnemonic in the Windows SDK.
IOleObjectImpl Class
ActiveX Controls Interfaces
Class Overview