Help Center

CTreeView.GetTextColormethod

Retrieves the current text color of the control.

WindowsmethodCTreeView.incdocumented

Syntax

FUNCTION GetTextColor (BYVAL hTreeView AS HWND) AS COLORREF

Parameters

NameDescription
hTreeViewThe handle of the TreeView control.

Return value

Returns a COLORREF value that represents the current text color. If this value is -1, the control is using the system color for the text color.

Description

Retrieves the current text color of the control.

Reference

  • Include file CTreeView.inc
  • Defined in AfxNova/CTreeView.inc:1010
  • Documented in Windows/WIndows Controls/CTreeView Class.md
  • Topic: CTreeView Class