Rediger

Del via


TVM_SETTEXTCOLOR message

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

Parameters

wParam

Must be zero.

lParam

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

Return value

Returns a COLORREF value that represents the previous text color. If this value is -1, the control was using the system color for the text 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_GETTEXTCOLOR