IOleControl Interface

Provides the features for supporting keyboard mnemonics, ambient properties, and events in control objects.

When To Implement

Implement this interface for a control object to communicate with the control's container, for example, when managing keyboard activity or obtaining the container's ambient properties.

When To Use

A control container uses this interface to work with keyboard mnemonics, ambient properties, and events of a contained control object.

Methods

The IOleControl interface inherits the methods of the IUnknown interface.

In addition, IOleControl defines the following methods.

MethodDescription

GetControlInfo

Retrieves information about the control's keyboard mnemonics and behavior.

OnMnemonic

Informs a control that the user has pressed a keystroke that represents a keyboard mneumonic.

OnAmbientPropertyChange

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

FreezeEvents

Indicates whether the container is ignoring or accepting events from the control.

 

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderOCIdl.h
IDLOCIdl.idl
IIDIID_IOleControl is defined as B196B288-BAB4-101A-B69C-00AA00341D07

See Also

IOleControlSite
ISimpleFrameSite

Send comments about this topic to Microsoft

Build date: 11/12/2009

Tags :


Page view tracker