CefSharp.WinForms
Try to avoid needing to override this logic in a subclass. The implementation in
DefaultFocusHandler relies on very detailed behavior of how WinForms and
Windows interact during window activation.
Executes the Action asynchronously on the UI thread, does not block execution on the calling thread.
the control for which the update is required
action to be performed on the control
Returns whether the supplied control is the currently
active control.
the control to check
true if the control is the currently active control
Keep track of whether a move is in progress.
Used to determine the coordinates involved in the move
Call to force refinding of the parent Form.
(i.e. top level window that owns the ChromiumWebBrowserControl)
Adjust the form to listen to if the ChromiumWebBrowserControl's parent changes.
The ChromiumWebBrowser whose parent has changed.
The instance containing the event data.
Tell the browser to acquire/release focus.
Set to true while handing an activating WM_ACTIVATE message.
MUST ONLY be cleared by DefaultFocusHandler.
The for this ChromiumWebBrowser.
If you need customized focus handling behavior for WinForms, the suggested
best practice would be to inherit from DefaultFocusHandler and try to avoid
needing to override the logic in OnGotFocus. The implementation in
DefaultFocusHandler relies on very detailed behavior of how WinForms and
Windows interact during window activation.
Manually implement Focused because cef does not implement it.
This is also how the Microsoft's WebBrowserControl implements the Focused property.