protected override HandleRef BuildWindowCore(HandleRef hwndParent) { Log("BuildWindowCore"); if (hostNativeWindow != null) { hostNativeWindow.ReleaseHandle(); } else { hostNativeWindow = new CustomWindowsFormsHost.HostNativeWindow(this); } this.hwndParent = hwndParent; hostNativeWindow.AssignHandle(hwndParent.Handle); IntPtr childHandle = container.Handle; Win32.SetParent(childHandle, hwndParent.Handle); return new HandleRef(container, childHandle); }
protected override HandleRef BuildWindowCore(HandleRef hwndParent) { Log("BuildWindowCore"); if (hostNativeWindow != null) { hostNativeWindow.ReleaseHandle(); } else { hostNativeWindow = new CustomWindowsFormsHost.HostNativeWindow(this); } this.hwndParent = hwndParent; hostNativeWindow.AssignHandle(hwndParent.Handle); IntPtr childHandle = container.Handle; Win32.SetParent(childHandle, hwndParent.Handle); return(new HandleRef(container, childHandle)); }
protected override HandleRef BuildWindowCore(HandleRef hwndParent) { Log("BuildWindowCore"); if (_hostNativeWindow != null) { _hostNativeWindow.ReleaseHandle(); } else { _hostNativeWindow = new HostNativeWindow(this); } this._hwndParent = hwndParent; _hostNativeWindow.AssignHandle(hwndParent.Handle); var childHandle = _container.Handle; Win32.SetParent(childHandle, hwndParent.Handle); return new HandleRef(_container, childHandle); }