FarListColors

Far Manager

FarListColors

The FarListColors structure describes the color scheme for DI_LISTBOX and DI_COMBOBOX controls.
struct FarListColors
{
  DWORD  Flags;
  DWORD  Reserved;
  int    ColorCount;
  LPBYTE Colors;
};

Members

Flags
Falgs. Must be 0.
Reserved
Reserved for future use. Must be 0.
ColorCount
Amount of items in the Colors array.
Colors
Byte array of the color attributes (background_color+text_color). By default the folowing attributes are set:

for DI_LISTBOX

IndexConstantDescription
0COL_DIALOGLISTBOX  background
1COL_DIALOGLISTBOX  border
2COL_DIALOGLISTTITLE  titles - top and bottom
3COL_DIALOGLISTTEXT  normal item
4COL_DIALOGLISTHIGHLIGHT  hotkey
5COL_DIALOGLISTBOX  separator
6COL_DIALOGLISTSELECTEDTEXT  selected item
7COL_DIALOGLISTSELECTEDHIGHLIGHT  selected hotkey
8COL_DIALOGLISTSCROLLBAR  scrollbar
9COL_DIALOGLISTDISABLED  disabled item
10COL_DIALOGLISTARROWS  long string indicators
11COL_DIALOGLISTARROWSSELECTED  selected long string indicators
12COL_DIALOGLISTARROWSDISABLED  disabled long string indicators
13COL_DIALOGLISTGRAY  grayed out item
14COL_DIALOGLISTSELECTEDGRAYTEXT  selected grayed out item

for DI_COMBOBOX

IndexConstantDescription
0COL_DIALOGCOMBOBOX  background
1COL_DIALOGCOMBOBOX  border
2COL_DIALOGCOMBOTITLE  titles - top and bottom
3COL_DIALOGCOMBOTEXT  normal item
4COL_DIALOGCOMBOHIGHLIGHT  hotkey
5COL_DIALOGCOMBOBOX  separator
6COL_DIALOGCOMBOSELECTEDTEXT  selected item
7COL_DIALOGCOMBOSELECTEDHIGHLIGHT  selected hotkey
8COL_DIALOGCOMBOSCROLLBAR  scrollbar
9COL_DIALOGCOMBODISABLEDTEXT  disabled item
10COL_DIALOGCOMBOARROWS  long string indicators
11COL_DIALOGCOMBOARROWSSELECTED  selected long string indicators
12COL_DIALOGCOMBOARROWSDISABLED  disabled long string indicators
13COL_DIALOGCOMBOGRAY  grayed out item
14COL_DIALOGCOMBOSELECTEDGRAYTEXT  selected grayed out item

Remarks

See also: