MTblSetCellMergeEx

Functions ›› MTblSet... ›› MTblSetCell... ››
Parent Previous Next

bOk = MTblSetCellMergeEx( hWndCol, nRow, nMergedCols, nMergedRows, nFlags )

Merges a cell with a certain number of neighbouring cells which are right beside the cell
and a certain number of neighbouring rows which are below the cell.

Parameters
hWndCol
Window Handle: Handle of the column

nRow
Number: Row number

nMergedCols
Number: Number of neighbouring cells to merge

nMergedRows
Number: Number of neighbouring rows to merge

nFlags
Number: Any combination of the following flags:

MTSM_REDRAW

Redraws the affected cells

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

Example
In this example 3 columns and 5 rows are merged with cell hWndCol / row 0:

Call MTblSetCellMergeEx( hWndCol, 0, 3, 5, MTSM_REDRAW )

Remarks
As long as a merge cell is disabled, either because the column, the row or the cell is disabled, the merged cells are disabled, too.

See also
Cell merging
Row merging

Created with the Personal Edition of HelpNDoc: Generate EPub eBooks with ease