ChromiumRenderWidgetHandleFinderTryFindHandle(IntPtr, String, IntPtr) Method |
Version 130.1.90
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.ExperimentalAssembly: CefSharp.WinForms (in CefSharp.WinForms.dll) Version: 129.0.110.0 (129.0.110.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 IntPtr
- ChromiumWebBrowser control Handle
- chromeRenderWidgetHostClassName String
- class name used to match
- chromerRenderWidgetHostHandle IntPtr
- Handle of the child HWND with the name ChromeRenderWidgetHostClassName
Return Value
Booleanreturns true if the HWND was found otherwise false.
See Also