IWindowTarget.OnHandleChange(IntPtr) IWindowTarget.OnHandleChange(IntPtr) IWindowTarget.OnHandleChange(IntPtr) IWindowTarget.OnHandleChange(IntPtr) Method

定义

IWindowTarget 的句柄设置为指定句柄。Sets the handle of the IWindowTarget to the specified handle.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 void OnHandleChange(IntPtr newHandle);
public void OnHandleChange (IntPtr newHandle);
abstract member OnHandleChange : nativeint -> unit
Public Sub OnHandleChange (newHandle As IntPtr)

参数

newHandle
IntPtr IntPtr IntPtr IntPtr

IWindowTarget 的新句柄。The new handle of the IWindowTarget.

注解

OnHandleChange控件的窗口句柄发生更改时,将调用方法。The OnHandleChange method is called when the window handle of the control has changed.

适用于