Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

Members

The IOleControl interface inherits from the IUnknown interface. IOleControl also has these types of members:

Methods

The IOleControl interface has these methods.

MethodDescription
FreezeEvents

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

GetControlInfo

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

OnAmbientPropertyChange

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

OnMnemonic

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

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IOleControl is defined as B196B288-BAB4-101A-B69C-00AA00341D07

See also

IOleControlSite
ISimpleFrameSite

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.