IVsMenuEditor::Filter Method (IntPtr, UInt32, IntPtr, IntPtr, Int32)
Visual Studio 2015
Allows the Menu designer to process a few selected messages that are required to correctly position, paint, and activate the menus.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int Filter( IntPtr hwnd, unsigned int uMsg, IntPtr wParam, IntPtr lParam, [OutAttribute] int% plResult )
Parameters
- hwnd
-
Type:
System::IntPtr
[in] Handle to the window whose window procedure receives the message.
- uMsg
-
Type:
System::UInt32
[in] The message identifier.
- wParam
-
Type:
System::IntPtr
[in] Additional information about the message. The exact meaning depends on the value of the uMsg parameter.
- lParam
-
Type:
System::IntPtr
[in] Additional information about the message. The exact meaning depends on the value of the uMsg parameter.
- plResult
-
Type:
System::Int32
[out] If this method succeeds, this parameter contains the destination window.
Return Value
Type: System::Int32If 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 );
Show: