MTblSetRowBackColor
bOk = MTblSetRowBackColor( hWndTbl, nRow, nColor, nFlags )
Sets a row's background color.
Parameters
hWndTbl
Window Handle: Handle of the table
nRow
Number: Row number
nColor
Number:The color. Specify MTBL_COLOR_UNDEF to leave the color undefined.
nFlags
Number: Any combination of the following flags:
MTSC_REDRAW |
Redraws the row |
Return
Boolean: TRUE if successful or FALSE if an error occurs
Example
In this example a row's background color is set to blue and the row is redrawn:
Call MTblSetRowBackColor( hWndTbl, nRow, COLOR_Blue, MTSC_REDRAW )
Remarks
If the table flag MTBL_FLAG_COLOR_ENTIRE_ROW is not set, the background color of rows is painted only in column cells.
Otherwise, the background color of rows is painted across the entire table.
See also
Custom fonts and colors
Created with the Personal Edition of HelpNDoc: From Word to ePub or Kindle eBook: A Comprehensive Guide