Hi
SendFocusEvent/SetFocus can be used to put the browser "control" under focus.
Is there a function that can tell if it has focus or not ?
amaitland wrote:You can implement `CefFocusHandler` from which you can track the focus. Make sure to read the method descriptions in detail.
http://magpcss.org/ceforum/apidocs3/pro ... ndler.html
amaitland wrote:If you require more than being notified when the user tabs out of the browser then you'll have to look at a lower level approach.
The following should work even though it's asking in relation to `CEF1`
http://magpcss.org/ceforum/viewtopic.ph ... cus#p14687
magreenblatt wrote:The WinAPI GetFocus function will tell you what window has focus. You can then walk the window hierarchy using GetAncestor to determine if it's the browser window or some other application window.
Users browsing this forum: Google [Bot] and 85 guests