This interface provides the methods to manage a shell menu object.
Method |
Description |
IASShellMenu::get_LabelBackColor | Gets the label background color. |
IASShellMenu::get_LabelForeColor | Gets the label foreground color. |
IASShellMenu::get_LabelHeight | Gets the label height. |
IASShellMenu::get_HotKey | Gets the hot key associated with a shell menu item. |
IASShellMenu::get_ItemFlags | Gets the flags associated with a shell menu item. |
IASShellMenu::put_LabelBackColor | Sets the label background color. |
IASShellMenu::put_LabelForeColor | Sets the label foreground color. |
IASShellMenu::put_LabelHeight | Sets the label height. |
IASShellMenu::put_HotKey | Assigns a hot key to a shell menu item. |
IASShellMenu::put_ItemFlags | Sets the flags for the specified item. |
The IASShellMenu interface, which has a global unique identifier (GUID) equal to IID_ASSHELLMENU, extends the IASImageMenu interface. It is used to implement the Auto PC shell user interface (UI). When an item is selected from a shell menu, a WM_COMMAND event is fired to the event sink. The high-order word contains the control’s identifier, and the low-order word contains the item’s identifier. The index of the menu item is sent in lParam. When the focus changes from one item to the next, a WM_COMMAND message is fired to the event sink. LBN_SELCHANGE is in the high-order word of wParam, and the control’s identifier is in the low-order word.