Re: [GD-Windows] Extending Internet Explorer DOM when hosting
Brought to you by:
vexxed72
From: Rich <leg...@xm...> - 2002-01-16 06:17:49
|
Hey, I just happened to be reading "ATL Internals" and they were talking about how you could get a debug listing of all the QueryInterface traffic between your object and the outside world. They gave a sample listing the interfaces queried on a control hosted by IE4. One of the interfaces listed was IActiveScript. So I look at IActiveScript in MSDN and it has this method: HRESULT AddNamedItem( LPCOLESTR pstrName, // address of item name DWORD dwFlags // item flags ); Adds the name of a root-level item to the scripting engine's name space. A root-level item is an object with properties and methods, an event source, or all three. Now that sounds exactly like what you want. Now when a control is hosted in IE4, at some point it hands you a pointer to itself. You can use that to QI for IActiveScript, I believe. (I'm a little new to AX controls yet.) -- Ask me about my upcoming book on Direct3D from Addison-Wesley! Direct3D Book <http://www.xmission.com/~legalize/book/> Don't Support Spammers! Boycott Fractal Painter 7! <http://www.xmission.com/~legalize/spammers.html> |