TreeView_SetBkColor macro (commctrl.h)

Sets the background color of the control. You can use this macro or send the TVM_SETBKCOLOR message explicitly.

Syntax

void TreeView_SetBkColor(
   hwnd,
   clr
);

Parameters

hwnd

Type: HWND

Handle to a tree-view control.

clr

Type: COLORREF

COLORREF value that contains the new background color. If this argument is -1, the control will revert to using the system color for the background color.

Return value

None

Requirements

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

See also

TreeView_GetBkColor