Events
Nov 19, 11 PM - Nov 21, 11 PM
Gain the competitive edge you need with powerful AI and Cloud solutions by attending Microsoft Ignite online.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Sets the background color of the control. You can use this macro or send the TVM_SETBKCOLOR message explicitly.
COLORREF TreeView_SetBkColor(
HWND hwnd,
COLORREF clr
);
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.
Type: COLORREF
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.
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 |
Events
Nov 19, 11 PM - Nov 21, 11 PM
Gain the competitive edge you need with powerful AI and Cloud solutions by attending Microsoft Ignite online.
Register now