ChromiumWebBrowserCreateBrowserWindowInfo Method |
Version 101.0.180
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: 101.0.180.0 (101.0.180.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