MTblSetColumnBackColor
bOk = MTblSetColumnBackColor( hWndCol, nColor, nFlags )
Sets a column's background color.
Parameters
hWndCol
Window Handle: Handle of the column
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 column |
Return
Boolean: TRUE if successful or FALSE if an error occurs
Example
In this example a column's background color is set to blue and the column is redrawn:
Call MTblSetColumnBackColor( hWndCol, COLOR_Blue, MTSC_REDRAW )
Remarks
If the table flag MTBL_FLAG_COLOR_ENTIRE_COLUMN is not set, the background color of columns is painted only in row cells. Otherwise, the background color of columns is painted over the entire table.
See also
Custom fonts and colors
Created with the Personal Edition of HelpNDoc: Full-featured Documentation generator