Platform SDK: MAPI |
A hierarchy viewer is a user interface component that is used for displaying folder and address book container hierarchy tables. Hierarchy viewers can display members of the hierarchy at different levels, expanding and contracting each level on demand.
If you are using the 32-bit version of MAPI, you can implement your hierarchy viewer manually or with the standard tree control from COMCTL32.DLL.
The container property, PR_DEPTH, controls the level at which a hierarchy member is displayed. Entries that represent top-level address book containers or folders have their PR_DEPTH property set to zero. The value of this property is incremented sequentially for entries in sequential levels. That is, when a user selects a top-level container to expand, display all containers with PR_DEPTH set to 1. When a user expands one of these subcontainers, display the containers with PR_DEPTH set to 2, and so on.
Hierarchy viewers support a different range of depths. You can limit your viewer to only one or two levels or support multiple levels, if displaying an expansive hierarchy is a priority.
The address book provides a hierarchy viewer for the top-level containers in the address book.
To access the address book hierarchy viewer
To access the default message store's hierarchy viewer