# TreeStyleConstants
{: .no_toc }

Composite visual style of a [**TreeView**](/tB/Packages/WinNativeCommonCtls/TreeView/index.md), encoding a 3-bit combination of which elements appear: **plus-minus** buttons, **treelines**, and **picture** icons. The labels are always shown.

Used by [**TreeView.Style**](/tB/Packages/WinNativeCommonCtls/TreeView/index.md#style). Default: **tvwTreelinesPlusMinusPictureText**.

The composite decoding:

| [**Style**](/tB/Packages/WinNativeCommonCtls/TreeView/index.md#style)                  | Buttons | Lines | Icons | Labels |
|--------------------------------------------------|---------|-------|-------|--------|
| **tvwTextOnly**                                  | ---       | ---     | ---     | yes    |
| **tvwPictureText**                               | ---       | ---     | yes   | yes    |
| **tvwPlusMinusText**                             | yes     | ---     | ---     | yes    |
| **tvwPlusMinusPictureText**                      | yes     | ---     | yes   | yes    |
| **tvwTreelinesText**                             | ---       | yes   | ---     | yes    |
| **tvwTreelinesPictureText**                      | ---       | yes   | yes   | yes    |
| **tvwTreelinesPlusMinusText**                    | yes     | yes   | ---     | yes    |
| **tvwTreelinesPlusMinusPictureText**             | yes     | yes   | yes   | yes    |

![Eight TreeViews of the same nodes, one in each Style: the four tvwTreelines styles draw dotted lines between the nodes, the four PlusMinus styles draw a button beside each node that has children, and all eight draw the nodes' pictures](/Reference/Built-In/WinNativeCommonCtls/TreeView/Images/TreeView_Styles.png){:width="811" height="369"}

> [!NOTE] BETA 1045
> A TreeView with an [**ImageList**](/tB/Packages/WinNativeCommonCtls/TreeView/index.md#imagelist) draws its nodes' pictures in every **Style**: the four styles without *Picture* in their name show them too, as the picture shows, and the nodes' text starts after them.

The enum's underlying values are 0--7, matching the order in the table.

| Member                                       | Value |
|----------------------------------------------|-------|
| **tvwTextOnly**{: #tvwTextOnly }                                       | 0 |
| **tvwPictureText**{: #tvwPictureText }                                 | 1 |
| **tvwPlusMinusText**{: #tvwPlusMinusText }                             | 2 |
| **tvwPlusMinusPictureText**{: #tvwPlusMinusPictureText }               | 3 |
| **tvwTreelinesText**{: #tvwTreelinesText }                             | 4 |
| **tvwTreelinesPictureText**{: #tvwTreelinesPictureText }               | 5 |
| **tvwTreelinesPlusMinusText**{: #tvwTreelinesPlusMinusText }           | 6 |
| **tvwTreelinesPlusMinusPictureText**{: #tvwTreelinesPlusMinusPictureText } | 7 |

## See Also

- [TreeView](/tB/Packages/WinNativeCommonCtls/TreeView/index.md) -- consumer
- [TreeLineStyleConstants](/tB/Packages/WinNativeCommonCtls/Enumerations/TreeLineStyleConstants.md) -- selects whether root-level lines are drawn when the **tvwTreelines…** variants are in effect
