WindowsFormsHost.WndProc Method
This member overrides HwndHost.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean), and more complete documentation might be available in that topic.
When implemented in a derived class, accesses the window process of the hosted child window.
Assembly: WindowsFormsIntegration (in WindowsFormsIntegration.dll)
protected override IntPtr WndProc( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled )
Parameters
- hwnd
- Type: System.IntPtr
Window handle of the hosted window.
- msg
- Type: System.Int32
Message to act upon.
- wParam
- Type: System.IntPtr
Information that may be relevant to handling the message. This is typically used to store small pieces of information, such as flags.
- lParam
- Type: System.IntPtr
Information that may be relevant to handling the message. This is typically used to reference an object.
- handled
- Type: System.Boolean
Whether events resulting should be marked handled.
- 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.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.