Summary


ActiveX controls use much of the functionality discussed so far. An ATL-based control typically supports properties and methods using ATL's IDispatchImpl support. In addition, a control typically fires events; therefore, it often derives from IConnectionPointContainerImpl and uses a connection point proxy-generated class (IconnectionPointImpl derived) for each connection point. A control generally requires persistence support, so it uses one or more of the persistence-implementation classes: IPersistSrteamInitImpl, IPersistPropertyBagImpl, and IPersistStorageImpl.

In addition, many controls should implement numerous other interfaces so that they integrate well with various control containers, such as Visual Basic. In the next chapter, you learn how ATL supports hosting ActiveX controls, and how to write a control container using ATL.




ATL Internals. Working with ATL 8
ATL Internals: Working with ATL 8 (2nd Edition)
ISBN: 0321159624
EAN: 2147483647
Year: 2004
Pages: 172

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net