TE Edit Control Win32 / Win64 Help
Product page

TerSetSectLineNbr

Set line numbering for the section.

BOOL TerSetSectLineNbr(hWnd, sect, set, repaint)
BOOL TerSetSectLineNbr2(hWnd, sect, set, step, 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 SECT_CUR to edit the current section, or set it to SECT_ALL to apply changes to all sections in the document.
BOOL set;Set to TRUE to enable line numbering. Set to false to disable line numbering.
int step;Steps in which to draw the numbers. A value of 0 or 1 produces continuous line numbering.
BOOL repaint;TRUE to refresh the window after this operation

Comment: The line numbers are displayed on the left side of the page. The page-layout (ID_SHOW_PAGE_LAYOUT) display must be turned on to see line numbering.

Return Value: This function returns TRUE if successful.