Compartir a través de


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

'Declaración
Function Filter ( _
    hwnd As IntPtr, _
    uMsg As UInteger, _
    wParam As IntPtr, _
    lParam As IntPtr, _
    <OutAttribute> ByRef plResult As Integer _
) As Integer
'Uso
Dim instance As IVsMenuEditor
Dim hwnd As IntPtr
Dim uMsg As UInteger
Dim wParam As IntPtr
Dim lParam As IntPtr
Dim plResult As Integer
Dim returnValue As Integer

returnValue = instance.Filter(hwnd, uMsg, _
    wParam, lParam, plResult)
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

IVsMenuEditor Members

Microsoft.VisualStudio.Shell.Interop Namespace