Condividi tramite


Metodo IShellMenu::GetMenu (shobjidl_core.h)

Ottiene le informazioni del menu impostate chiamando IShellMenu::SetMenu.

Sintassi

HRESULT GetMenu(
  [out] HMENU *phmenu,
  [out] HWND  *phwnd,
  [out] DWORD *pdwFlags
);

Parametri

[out] phmenu

Tipo: HMENU*

Quando questo metodo restituisce, contiene un puntatore a un valore HMENU che riceve il valore hmenu specificato quando si chiama IShellMenu::SetMenu. Questo valore può essere NULL.

[out] phwnd

Tipo: HWND*

Quando questo metodo restituisce, contiene un puntatore a un valore HWND che riceve il valore hwnd specificato quando si chiama IShellMenu::SetMenu. Questo valore può essere NULL.

[out] pdwFlags

Tipo: DWORD*

Quando questo metodo restituisce, contiene un puntatore a un valore DWORD che riceve il valore dwFlags specificato quando si chiama IShellMenu::SetMenu. Questo valore può essere NULL.

Valore restituito

Tipo: HRESULT

Se questo metodo ha esito positivo, restituisce S_OK. In caso contrario, restituisce un codice di errore HRESULT .

Requisiti

Requisito Valore
Client minimo supportato Windows XP con SP2 [solo app desktop]
Server minimo supportato Windows Server 2003 [solo app desktop]
Piattaforma di destinazione Windows
Intestazione shobjidl_core.h (include Shobjidl.h)
DLL Shell32.dll