Informs a control that the user has pressed a keystroke that matches one of the ACCEL entries in the mnemonic table returned through IOleControl::GetControlInfo. The control takes whatever action is appropriate for the keystroke.
HRESULT OnMnemonic(
LPMSG pMsg |
//Pointer to structure |
); |
Parameters
Return Values
This method supports the standard return values E_INVALIDARG and E_UNEXPECTED, as well as the following:
Remarks
If a control changes the contents of its CONTROLINFO structure, it must notify its container by calling IOleControlSite::OnControlInfoChanged.
A container of a control is allowed to cache the control’s CONTROLINFO structure, provided that the container implements IOleControlSite::OnControlInfoChanged to know when it must update its cached information.
See Also
IOleControl::GetControlInfo, IOleControlSite::OnControlInfoChanged