NMTVCUSTOMDRAW structure (commctrl.h)

Contains information specific to an NM_CUSTOMDRAW (tree view) notification code sent by a tree-view control.

Syntax

typedef struct tagNMTVCUSTOMDRAW {
  NMCUSTOMDRAW nmcd;
  COLORREF     clrText;
  COLORREF     clrTextBk;
  int          iLevel;
} NMTVCUSTOMDRAW, *LPNMTVCUSTOMDRAW;

Members

nmcd

Type: NMCUSTOMDRAW

NMCUSTOMDRAW structure that contains general custom draw information.

clrText

Type: COLORREF

COLORREF value representing the color that will be used to display text foreground in the tree-view control.

clrTextBk

Type: COLORREF

COLORREF value representing the color that will be used to display text background in the tree-view control.

iLevel

Type: int

Version 4.71. Zero-based level of the item being drawn. The root item is at level zero, a child of the root item is at level one, and so on.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header commctrl.h