HwndHost.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean) Método

Definición

Cuando se invalida en una clase derivada, obtiene acceso al proceso de ventana (identificador) de la ventana secundaria hospedada.

protected:
 virtual IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool % handled);
[System.Security.SecurityCritical]
protected virtual IntPtr WndProc (IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled);
protected virtual IntPtr WndProc (IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled);
[<System.Security.SecurityCritical>]
abstract member WndProc : nativeint * int * nativeint * nativeint * bool -> nativeint
override this.WndProc : nativeint * int * nativeint * nativeint * bool -> nativeint
abstract member WndProc : nativeint * int * nativeint * nativeint * bool -> nativeint
override this.WndProc : nativeint * int * nativeint * nativeint * bool -> nativeint
Protected Overridable Function WndProc (hwnd As IntPtr, msg As Integer, wParam As IntPtr, lParam As IntPtr, ByRef handled As Boolean) As IntPtr

Parámetros

hwnd
IntPtr

nativeint

Identificador de ventana de la ventana hospedada.

msg
Int32

Mensaje en el que se va a actuar.

wParam
IntPtr

nativeint

Información que puede ser relevante para controlar el mensaje. Se suele utilizar para almacenar pequeños fragmentos de información, como los marcadores.

lParam
IntPtr

nativeint

Información que puede ser relevante para controlar el mensaje. Se suele utilizar para hacer referencia a un objeto.

handled
Boolean

Indica si los eventos resultantes deben marcarse como controlados.

Devoluciones

IntPtr

nativeint

Identificador de ventana de la ventana secundaria.

Atributos

Comentarios

Importante

Este tipo o miembro no está disponible en la zona de seguridad de Internet.

Notas a los desarrolladores de herederos

La implementación base en HwndHost no devuelve un proceso práctico, pero devolverá IntPtr.Zero como un errorsafe.

Se aplica a