Compartilhar via


IVsMenuEditor.Filter Method

Definition

Overloads

Filter(IntPtr, UInt32, IntPtr, IntPtr, Int32)

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

Filter(IntPtr, UInt32, IntPtr, IntPtr, IntPtr)

Filter(IntPtr, UInt32, IntPtr, IntPtr, Int32)

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

public:
 int Filter(IntPtr hwnd, System::UInt32 uMsg, IntPtr wParam, IntPtr lParam, [Runtime::InteropServices::Out] int % plResult);
public int Filter (IntPtr hwnd, uint uMsg, IntPtr wParam, IntPtr lParam, out int plResult);
abstract member Filter : nativeint * uint32 * nativeint * nativeint * int -> int
Public Function Filter (hwnd As IntPtr, uMsg As UInteger, wParam As IntPtr, lParam As IntPtr, ByRef plResult As Integer) As Integer

Parameters

hwnd
IntPtr

nativeint

[in] Handle to the window whose window procedure receives the message.

uMsg
UInt32

[in] The message identifier.

wParam
IntPtr

nativeint

[in] Additional information about the message. The exact meaning depends on the value of the uMsg parameter.

lParam
IntPtr

nativeint

[in] Additional information about the message. The exact meaning depends on the value of the uMsg parameter.

plResult
Int32

[out] If this method succeeds, this parameter contains the destination window.

Returns

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  
   );  

Applies to

Filter(IntPtr, UInt32, IntPtr, IntPtr, IntPtr)

public:
 int Filter(IntPtr hwnd, System::UInt32 uMsg, IntPtr wParam, IntPtr lParam, [Runtime::InteropServices::Out] IntPtr % plResult);
public int Filter (IntPtr hwnd, uint uMsg, IntPtr wParam, IntPtr lParam, out IntPtr plResult);
abstract member Filter : nativeint * uint32 * nativeint * nativeint * nativeint -> int
Public Function Filter (hwnd As IntPtr, uMsg As UInteger, wParam As IntPtr, lParam As IntPtr, ByRef plResult As IntPtr) As Integer

Parameters

hwnd
IntPtr

nativeint

uMsg
UInt32
wParam
IntPtr

nativeint

lParam
IntPtr

nativeint

plResult
IntPtr

nativeint

Returns

Applies to