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.
| Method | Description |
|---|---|
| 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 |
|
|
IDL |
|
|
IID |
IID_IOleControl is defined as B196B288-BAB4-101A-B69C-00AA00341D07 |
See also