TE Edit Control Win32 / Win64 Help
Product page

TerSetSectParam

Set section parameters.

BOOL TerSetSectParam(hWnd, select, type, val, repaint)
HWND hWnd;Handle of the window to be accessed
int select;Section id to apply changes. You can also set this parameter to SECT_CUR to edit the current section, or set it to SECT_ALL to apply changes to all sections in the document.
int type;Parameter type to set. Select one of the constants:
SP_LINE_BET_COLSet to 1 to draw a line between columns. Applicable to a multi-column section only.
SP_LEFT_MARGGet the section left margin value in twips.
SP_RIGHT_MARGGet the section right margin value in twips.
SP_TOP_MARGGet the section top margin value in twips.
SP_BOT_MARGGet the section bottom margin value in twips.
SP_HDR_MARGGet the distance of the header text from the top of the page in twips.
SP_FTR_MARGGet the distance of the footer text from the bottom of the page 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.