O'Reilly logo

ATL Internals: Working with ATL 8, Second Edition by Chris Sells, Brent Rector, Kirk Fertitta, Christopher Tavares

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Control Containment

Containment of COM controls can take many forms. A window can contain any number of COM controls, as can a dialog or another control (called a composite control). All these containers share common characteristics, which is the subject of this chapter.

How Controls Are Contained

To contain a COM control,[1] a container must do two things:

1. Provide a window to act as the parent for the child COM control. The parent window can be used by a single child COM control or can be shared by many.

2. Implement a set of COM interfaces that the control uses to communicate with the container. The container must provide at least one object per control, called the site, to implement these interfaces. However, the interfaces ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required