IVsWebBrowserUser::GetCustomMenuInfo Method (Object^, Object^, UInt32, UInt32, Guid, Int32)

 

Gets information needed to customize a menu.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int GetCustomMenuInfo(
	Object^ pUnkCmdReserved,
	Object^ pDispReserved,
	unsigned int dwType,
	unsigned int dwPosition,
	[OutAttribute] Guid% pguidCmdGroup,
	[OutAttribute] int% pdwMenuID
)

Parameters

pUnkCmdReserved
Type: System::Object^

[in] Reserved IUnknown pointer.

pDispReserved
Type: System::Object^

[in] Reserved IDispatch pointer.

dwType
Type: System::UInt32

[in] The type of the menu.

dwPosition
Type: System::UInt32

[in] The position of the menu.

pguidCmdGroup
Type: System::Guid

[in] The command group GUID.

pdwMenuID
Type: System::Int32

[in] The identifier of the menu.

Return Value

Type: System::Int32

Returns S_OK if user is implementing a custom menu. Returns S_FALSE if menus are suppressed altogether.

From vsbrowse.idl:

[C++]

HRESULT IVsWebBrowserUser::GetCustomMenuInfo(
   [in] IUnknown* pUnkCmdReserved, 
   [in] IDispatch* pDispReserved, 
   [in] DWORD dwType, 
   [in] DWORD dwPosition, 
   [out] GUID* pguidCmdGroup, 
   [out] long* pdwMenuID
);
Return to top
Show: