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.
| Method | Description |
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 client | Windows 2000 Professional |
| Minimum supported server | Windows 2000 Server |
| Header | OCIdl.h |
| IDL | OCIdl.idl |
| IID | IID_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