HwndHost.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean) メソッド

定義

派生クラスでオーバーライドされると、ホストされている子ウィンドウのウィンドウ プロセス (ハンドル) にアクセスします。

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

パラメーター

hwnd
IntPtr

nativeint

ホストされているウィンドウのウィンドウ ハンドル。

msg
Int32

アクションを実行するメッセージ。

wParam
IntPtr

nativeint

メッセージの処理に関連する可能性がある情報。 これは通常、フラグなどの小さな情報を格納するために使用されます。

lParam
IntPtr

nativeint

メッセージの処理に関連する可能性がある情報。 これは通常、オブジェクトを参照するために使用されます。

handled
Boolean

結果のイベントを処理済みとしてマークする必要があるかどうか。

返品

IntPtr

nativeint

子ウィンドウのウィンドウ ハンドル。

属性

注釈

Important

この種類またはメンバーは、インターネット セキュリティ ゾーンでは使用できません。

注意 (継承者)

HwndHostの基本実装は実用的なプロセスを返しませんが、フェールセーフとしてIntPtr.Zeroを返します。

適用対象