ZeeGrid Control Message



An application sends a ZGM_ALTERNATEROWCOLORS message to enable or disable the displaying of odd numbered rows with the defined alternate background color.

wParam = (WPARAM) (BOOL) fEnable;     //enable flag
lParam = (LPARAM) (int)  iCPIndex;    //color palette index for the alternate color


Value of wParam. Specifies whether to enable or disable displaying alternate rows with a different background color. If enabled, the alternate background color is overridden by the cells background color if it is different from the default cell background color for the ZeeGrid. An option to using the BOOLEAN value of TRUE, an integer value greater than or equal to 2 can be used to specify the "spread" of the alternate rows. For instance, setting wParam to a value of 5 will set every 5th row to the color specified in lParam.

The value of lParam. The color index to use for alternate rows. Valid values are in the range [0..127]. This value is ignored if fEnable is FALSE.

Return Values

This message does not return a value.


Alternate row colors is disabled by default.

Copyright © 2002-2016 by David Hillard