Click or drag to resize

ChromiumRenderWidgetHandleFinderTryFindHandle Method (IntPtr, String, IntPtr)

Version 101.0.180
Helper function used to find the child HWND with the ClassName matching chromeRenderWidgetHostClassName Chromium's message-loop Window isn't created synchronously, so this may not find it. If so, you need to wait and try again later. In most cases you should use the TryFindHandle(IWebBrowser, IntPtr) overload.

Namespace:  CefSharp.WinForms.Experimental
Assembly:  CefSharp.WinForms (in CefSharp.WinForms.dll) Version: 101.0.180.0 (101.0.180.0)
Syntax
public static bool TryFindHandle(
	IntPtr chromiumWebBrowserHandle,
	string chromeRenderWidgetHostClassName,
	out IntPtr chromerRenderWidgetHostHandle
)

Parameters

chromiumWebBrowserHandle
Type: SystemIntPtr
ChromiumWebBrowser control Handle
chromeRenderWidgetHostClassName
Type: SystemString
class name used to match
chromerRenderWidgetHostHandle
Type: SystemIntPtr
Handle of the child HWND with the name ChromeRenderWidgetHostClassName

Return Value

Type: Boolean
returns true if the HWND was found otherwise false.
See Also