Click here to Skip to main content
15,917,793 members

Comments by Member 201298 (Top 1 by date)

Member 201298 23-Nov-10 2:33am View    
Definitely SetFocus and not finding the control on the active tab is the problem. But avoiding set focus does not seems to be the solution. If we do not set focus while the ActiveX control is getting loaded ,then when should we do that? The problem is not just with SetFocus , but also with other API/methods which is trying to find the control on the active window.

One of the logical solution looks like when the web page is loading , very first thing , get the current window/tab handler. And then while loading the ActivX control pass that window handler, and let the Activex use that Window handler for rendering the controls and also for setting focus.
Are there any good references which demonstrates how to programatically get/use windows handlers for the ActiveX control and also how to programatically control Internet explorer V8 wndow/tab handling. Thanks