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)
Syntax
'Declaration
Function Filter ( _
hwnd As IntPtr, _
uMsg As UInteger, _
wParam As IntPtr, _
lParam As IntPtr, _
<OutAttribute> ByRef plResult As Integer _
) As Integer
int Filter(
IntPtr hwnd,
uint uMsg,
IntPtr wParam,
IntPtr lParam,
out int plResult
)
int Filter(
[InAttribute] IntPtr hwnd,
[InAttribute] unsigned int uMsg,
[InAttribute] IntPtr wParam,
[InAttribute] IntPtr lParam,
[OutAttribute] int% plResult
)
abstract Filter :
hwnd:IntPtr *
uMsg:uint32 *
wParam:IntPtr *
lParam:IntPtr *
plResult:int byref -> int
function Filter(
hwnd : IntPtr,
uMsg : uint,
wParam : IntPtr,
lParam : IntPtr,
plResult : int
) : int
Parameters
hwnd
Type: IntPtr[in] Handle to the window whose window procedure receives the message.
uMsg
Type: UInt32[in] The message identifier.
wParam
Type: IntPtr[in] Additional information about the message. The exact meaning depends on the value of the uMsg parameter.
lParam
Type: IntPtr[in] Additional information about the message. The exact meaning depends on the value of the uMsg parameter.
plResult
Type: Int32%[out] If this method succeeds, this parameter contains the destination window.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
C++
From vsshell.idl:
HRESULT IVsMenuEditor::Filter([in]HWND hwnd,
[in]UINT uMsg,
[in]WPARAM wParam,
[in]LPARAM lParam,
[out]LRESULT *plResult
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.