IASShellMenu::put_HotKey

This method assigns a hot key to a shell menu item.

Syntax

HRESULT put_HotKey( long index unsigned char bID );

Parameters

index
Index of the item.
bID
Hot key code identifier, a value between 0 and 255.

Return Values

NOERROR indicates success. E_INVALIDARG indicates that an invalid argument has been entered.

Remarks

Hot keys are numbers, entered through the keypad, that provide a direct link to a menu item. If a hot key is detected, focus is set to that menu item, and a WM_COMMAND is fired to the event sink.

This method assigns a hot key value to a menu item. In horizontal display, the value appears above the item on the screen.

See Also

IASShellMenu::get_HotKey