语言

HwndHost.BuildWindowCore(HandleRef) 方法

定义

在派生类中重写时,创建要托管的窗口。

protected:
 abstract System::Runtime::InteropServices::HandleRef BuildWindowCore(System::Runtime::InteropServices::HandleRef hwndParent);
protected abstract System.Runtime.InteropServices.HandleRef BuildWindowCore(System.Runtime.InteropServices.HandleRef hwndParent);
abstract member BuildWindowCore : System.Runtime.InteropServices.HandleRef -> System.Runtime.InteropServices.HandleRef
Protected MustOverride Function BuildWindowCore (hwndParent As HandleRef) As HandleRef

参数

hwndParent
HandleRef

父窗口的窗口句柄。

返回

要创建的子 Win32 窗口的句柄。

注解

此方法的实现是从内部实现内部调用的 BuildWindowCore。

仅当窗口由调用线程拥有时,才会创建子窗口。

实施者说明

重写此方法以生成正在托管的窗口。

返回的窗口必须是窗口 hwndParent的子级。

此外,仅当窗口由调用线程拥有时,才会创建子窗口。

适用于