TE Edit Control Win32 / Win64 Help
Product page

TerAppendText

Append specified text at the end of the buffer.

BOOL TerAppendText(hWnd, text, FontId, ParaId, repaint)
HWND hWnd;Handle of the window to be accessed
BYTE huge *text;pointer to the text to be appended. The text must be NULL terminated.
int FontId;font id to use for the new text. Use -1 for the default value.
int ParaId;paragraph id to use for the new text. Use -1 for the default value.
BOOL repaint;Repaint the window after this operation

Description: This function adds the specified text at the end of the buffer. The current cursor position does not change after the insertion.

This is a very efficient function which can be used to rapidly build a document. This function does not attempt to wrap the text as they are being added. Your application should call the TerRewrap or TerRepaginate functions after making a series of calls to this function.

Return Value: This function returns TRUE when successful.