HwndHost.BuildWindowCore(HandleRef) HwndHost.BuildWindowCore(HandleRef) HwndHost.BuildWindowCore(HandleRef) HwndHost.BuildWindowCore(HandleRef) Method

定義

當在衍生類別中覆寫時,會建立要裝載的視窗。When overridden in a derived class, creates the window to be hosted.

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 HandleRef HandleRef HandleRef

父視窗的視窗控制代碼。The window handle of the parent window.

傳回

要建立之子 Win32Win32 視窗的控制代碼。The handle to the child Win32Win32 window to create.

備註

此方法的實作中呼叫的內部實作BuildWindowCoreThis method's implementation is called from within the internal implementation of BuildWindowCore.

只有當呼叫的執行緒所擁有的視窗時,才會建立子視窗。The child window will be created only if the window is owned by the calling thread.

給繼承者的注意事項

覆寫這個方法,以建立要裝載的視窗。Override this method to build the window being hosted.

您所傳回的視窗必須是所指定視窗的子系hwndParentThe window that you return must be a child of the window specified by hwndParent.

此外,如果呼叫的執行緒所擁有的視窗,將只建立子視窗。In addition, the child window will only be created if the window is owned by the calling thread.

適用於