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

Return Value

Type: System.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

See Also

Reference

IVsMenuEditor Interface

Microsoft.VisualStudio.Shell.Interop Namespace