TE Edit Control Win32 / Win64 Help
Product page

TerSetCellParam

Set cell parameters.

BOOL TerSetCellParam(hWnd, select, type, val, repaint)
HWND hWnd;Handle of the window to be accessed
int select;Cell selection for this operation:
SEL_ALL:Select the entire table
SEL_CELLS:Select the current cell or all highlighted cells
SEL_COLS:Select the current column or all highlighted columns
SEL_ROWS:Select the current row or all highlighted rows

Set the 'select' parameter to negative value to specify a specific cell id. For example, to specify CellId value 2, set this parameter to -2.

int type;Parameter type to set. Select one of the constants:
CP_PAD_LEFTSpecify left padding in twips.
CP_PAD_RIGHTSpecify right padding in twips.
CP_PAD_TOPSpecify top padding in twips.
CP_PAD_BOTSpecify bottom padding in twips.
int val;New value for the parameter specified by the 'type' parameter.
BOOL repaint;TRUE to repaint the screen after this operation

Return Value: This function returns a TRUE value if successful.