### Containers

A container control holds objects. For example, OS/2 provides a variety of containers, such as folders, templates, and the Workplace Shell itself. Containers can display their objects in different views: tree, icon, text, name, and details views. Using the Open Class Class Library, you can also develop your own containers and change their views, behaviors, and layouts.

The IContainer class supports both the CUA '91 container control and the Windows container. The Windows CUA container is a ported version of the OS/2 Presentation Manager container control. It has the same look-and-feel as the OS/2 Presentation Manager container control. The Windows container is composed of the list view and tree view controls which are native to the Windows environment.

Use the style, IContainerControl::pmCompatible, to select the CUA '91 container control. The native Windows list view control is the default selection in the Windows environment.

Due to the limited capabilities in Motif, the following areas of the IContainerControl and its related classes are not supported for the Open Class Class Library for AIX release:

- Vertical split bar in the details view
- All emphasis, except selection and cursor emphasis
- The following ICnrHandler overrides will not be called:
  - deltaReached
  - windowScrolled
- Draw item (for example, owner draw)
- Scrolling functions, including:
  - scroll
  - scrollDetailsHorizontally
  - scrollHorizontally
  - scrollToObject
  - scrollVertically
- IContainerControl constructors for creating an instance from an existing container control or a dialog template

Direct Manipulation

Using Default Direct Manipulation
Task and Samples Cross-Reference Table

ICnrHandler
IContainerControl
IContainerObject