bOk = MTblSetRowFlagImage( hWndTbl, nRowFlag, nImage, nFlags )

Sets the image for a row flag. The image is displayed in the row header if the row has the specified flag.

Parameters
hWndTbl
Window Handle: Handle of the table.

nRowFlag
Number: The row flag whose image you want to set. The following row flags are supported:

ROW_UserFlag1 ( ROW_UnusedFlag1 )
ROW_UserFlag2 ( ROW_UnusedFlag2 )
ROW_UserFlag3
ROW_UserFlag4
ROW_UserFlag5
ROW_MarkDeleted
ROW_New
ROW_Edited

nImage
Number: Image handle returned by one of the MImgLoad functions or 0 to display the standard image or MTBL_HIMG_NODEFAULT to display no image.

nFlags
Number: Any combination of the following flags:

MTSI_REDRAW

Redraws the table

MTSI_NOSELINV

The image will not be inverted when the row is selected

Return
Boolean: TRUE if successful or FALSE if an error occurs

Example
In this example the image for the ROW_New flag is set:

Call MTblSetRowFlagImage( hWndTbl, ROW_New, nImage, MTSI_REDRAW )

Remarks
You have to use handles returned by M!Image functions. Handles returned by VicPicLoad or by API functions can't be used.

Row flags are considered in the following order:
ROW_UserFlag1 ( ROW_UnusedFlag1 ), ROW_UserFlag2 ( ROW_UnusedFlag2 ), ROW_UserFlag3, ROW_UserFlag4, ROW_UserFlag5, ROW_MarkDeleted, ROW_New, ROW_Edited.

If the row header flag TBL_RowHdr_MarkEdits isn't set, no row flag images are displayed.
If a row has the flag ROW_HideMarks, no row flag image is displayed.

See also
Custom Images

Created with the Personal Edition of HelpNDoc: Free PDF documentation generator