Click or drag to resize

ChromiumRenderWidgetHandleFinderTryFindHandle Method (IntPtr, String, IntPtr)

Version 98.1.210
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(ChromiumWebBrowser, out IntPtr)] overload.

Namespace:  CefSharp.WinForms.Experimental
Assembly:  CefSharp.WinForms (in CefSharp.WinForms.dll) Version: 98.1.210.0 (98.1.210.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