TE Edit Control Win32 / Win64 Help
Product page

TerSetSectColWidth

Set the column width and inter-column spacing for a variable width column section.

BOOL TerSetSectColWidth(hWnd, sect, col, width, ColSpace, repaint)
HWND hWnd;The handle of the window to be accessed
int sect;Section id to apply changes. You can also set this parameter to -1 to specify the current column.
int col;The column number (0 to total columns -1) to apply the width and column space parameters. Set this parameter to -1 to restore the section to use uniform width for the columns.
int width;The new width (int twips) for the specified column.
int ColSpace;The new inter-column space (in twips) after the specified column.
BOOL repaint;TRUE to refresh the window after this operation

Return Value: This function returns TRUE if successful.