Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 1.67 KB

tvm-setbkcolor.md

File metadata and controls

61 lines (39 loc) · 1.67 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
TVM_SETBKCOLOR message (Commctrl.h)
Sets the background color of the control. You can send this message explicitly or by using the TreeView\_SetBkColor macro.
087f5e0b-ac73-4db4-b82e-15c7641b681c
TVM_SETBKCOLOR message Windows Controls
apiref
TVM_SETBKCOLOR
Commctrl.h
HeaderDef
reference
05/31/2018

TVM_SETBKCOLOR message

Sets the background color of the control. You can send this message explicitly or by using the TreeView_SetBkColor macro.

Parameters

wParam

Must be zero.

lParam

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

Return value

Returns a COLORREF value that represents the previous background color. If this value is -1, the control was using the system color for the background color.

Requirements

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

See also

TVM_GETBKCOLOR