ChromiumRenderWidgetHandleFinderTryFindHandle Method (IntPtr, String, IntPtr) |
Version 97.1.60
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: 97.1.60.0 (97.1.60.0)
Syntax public static bool TryFindHandle(
IntPtr chromiumWebBrowserHandle,
string chromeRenderWidgetHostClassName,
out IntPtr chromerRenderWidgetHostHandle
)
public:
static bool TryFindHandle(
IntPtr chromiumWebBrowserHandle,
String^ chromeRenderWidgetHostClassName,
[OutAttribute] 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:
Booleanreturns true if the HWND was found otherwise false.
See Also