Windows Dev Center

ITextHost::TxGetSysColor method

Retrieves the text host's color for a specified display element.

Syntax


COLORREF TxGetSysColor(
  [in] INT nIndex
);

Parameters

nIndex [in]

Type: INT

The display element whose color is to be retrieved. For a list of possible values for this parameter, see the GetSysColor function.

Return value

Type: COLORREF

The value that identifies the red, green, and blue (RGB) color value of the specified element.

Remarks

Note that the color returned may be different than the color that would be returned from a call to GetSysColor. This is the case if the host overrides the default system behavior.

Note  Hosts should be careful about overriding normal system behavior because it can result in inconsistent UI (particularly with respect to Accessibility options).

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Textserv.h

DLL

Msftedit.dll

See also

ITextHost
Windowless Rich Edit Controls Overview

 

 

Community Additions

ADD
Show:
© 2015 Microsoft