mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user