Επεξεργασία

Κοινή χρήση μέσω


IShellMenu interface (shobjidl_core.h)

Exposes methods that interact with Shell menus such as the Start menu, and the Favorites menu.

Inheritance

The IShellMenu interface inherits from the IUnknown interface. IShellMenu also has these types of members:

Methods

The IShellMenu interface has these methods.

 
IShellMenu::GetMenu

Gets the menu information set by calling IShellMenu::SetMenu.
IShellMenu::GetMenuInfo

Gets information from the IShellMenu::Initialize method.
IShellMenu::GetShellFolder

Gets the folder that the menu band is set to browse.
IShellMenu::GetState

Gets a filled SMDATA structure.
IShellMenu::Initialize

Initializes a menu band.
IShellMenu::InvalidateItem

Redraws an item in a menu band.
IShellMenu::SetMenu

Appends a static menu to the menu band.
IShellMenu::SetMenuToolbar

Adds a menu to the menuband.
IShellMenu::SetShellFolder

Specifies the folder for the menu band to browse.

Remarks

To get a pointer to this interface, call CoCreateInstance with the rclsid parameter set to CLSID_MenuBand and the riid parameter set to IID_IShellMenu. You must first initialize the interface by calling IShellMenu::Initialize, and then initialize the menu band by calling IShellMenu::SetShellFolder.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)