WinForms - If the ChromiumWebBrowser has it's handle recreated then in OnHandleCreated we will now attempt to reparent a existing instance rather than creating a new browser

# Conflicts:
#	CefSharp.WinForms/ChromiumWebBrowser.cs
This commit is contained in:
amaitland
2017-05-24 12:54:14 +10:00
parent 0032ae463f
commit 85e32974ae
3 changed files with 19 additions and 1 deletions
+8
View File
@@ -37,4 +37,12 @@ namespace CefSharp
}
}
}
void NativeMethodWrapper::SetWindowParent(IntPtr child, IntPtr newParent)
{
HWND childHwnd = static_cast<HWND>(child.ToPointer());
HWND newParentHwnd = static_cast<HWND>(newParent.ToPointer());
SetParent(childHwnd, newParentHwnd);
}
}