ChromiumWebBrowserCreateBrowserWindowInfo Method |
Version 130.1.90
Override this method to handle creation of WindowInfo. This method can be used to customise aspects of
browser creation including configuration of settings such as
ExStyle.
Window Activation is disabled by default, you can re-enable it by overriding and removing the
WS_EX_NOACTIVATE style from
ExStyle.
Namespace: CefSharp.WinFormsAssembly: CefSharp.WinForms (in CefSharp.WinForms.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax protected virtual IWindowInfo CreateBrowserWindowInfo(
IntPtr handle
)
protected:
virtual IWindowInfo^ CreateBrowserWindowInfo(
IntPtr handle
)
Parameters
- handle IntPtr
- Window handle for the Control
Return Value
IWindowInfoWindow Info
Example
To re-enable Window Activation then remove WS_EX_NOACTIVATE from ExStyle
const uint WS_EX_NOACTIVATE = 0x08000000;
windowInfo.ExStyle &= ~WS_EX_NOACTIVATE;
See Also