ChromiumWebBrowserCreateBrowserWindowInfo Method |
Version 110.0.300
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.WinForms
Assembly:
CefSharp.WinForms (in CefSharp.WinForms.dll) Version: 110.0.300.0 (110.0.300.0)
Syntax protected virtual IWindowInfo CreateBrowserWindowInfo(
IntPtr handle
)
protected:
virtual IWindowInfo^ CreateBrowserWindowInfo(
IntPtr handle
)
Parameters
- handle
- Type: SystemIntPtr
Window handle for the Control
Return Value
Type:
IWindowInfoWindow Info
Examples
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