Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

IVsMenuEditor.Filter Method

Allows the Menu designer to process a few selected messages that are required to correctly position, paint, and activate the menus.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int Filter (
	[InAttribute] IntPtr hwnd,
	[InAttribute] uint uMsg,
	[InAttribute] IntPtr wParam,
	[InAttribute] IntPtr lParam,
	out int plResult
)
int Filter (
	/** @attribute InAttribute() */ IntPtr hwnd, 
	/** @attribute InAttribute() */ UInt32 uMsg, 
	/** @attribute InAttribute() */ IntPtr wParam, 
	/** @attribute InAttribute() */ IntPtr lParam, 
	/** @attribute OutAttribute() */ /** @ref */ int plResult
)
JScript does not support passing value-type arguments by reference.

Parameters

hwnd

[in]

uMsg

[in]

wParam

[in]

lParam

[in]

plResult

[out]

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

C++

From vsshell.idl:

HRESULT IVsMenuEditor::Filter([in]HWND hwnd, 
   [in]UINT uMsg, 
   [in]WPARAM wParam, 
   [in]LPARAM lParam, 
   [out]LRESULT *plResult
   );

Community Additions

ADD
Show:
© 2015 Microsoft