Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

TreeView_SetTextColor macro

Sets the text color of the control. You can use this macro or send the TVM_SETTEXTCOLOR message explicitly.

Syntax


COLORREF TreeView_SetTextColor(
   HWND     hwndTV,
   COLORREF clrText
);

Parameters

hwndTV

Type: HWND

Handle to a tree-view control.

clrText

Type: COLORREF

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

See also

TreeView_GetTextColor

 

 

Community Additions

ADD
Show:
© 2015 Microsoft