Click to Rate and Give Feedback
MSDN
MSDN Library
COM
Reference
Interfaces
IOleControl

  Switch on low bandwidth view
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: 7/9/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker