TE Edit Control Win32 / Win64 Help
Product page

SetTerBuffer

Set Window Text:

BOOL SetTerBuffer(hWnd, hBuffer, size, title, release)
HWND hWnd;The handle of the window to be accessed
HANDLE hBuffer:The global handle to the buffer containing the new text and format data.
long size;The size of the hBuffer buffer
LPBYTE title;new title for the window. Specify a NULL value if you do not wish to change the window title
BOOL release;Release the buffer after applying

Description: You can use this function to set new data in an existing TER window. The exising text in the window is discarded. The data in the buffer can be provided in one of these formats:

Text Format

Rich Text Format

TER Native Format

If the 'release' flag is set, the hBuffer handle becomes the property of the TER window. Your application must not try to lock or free this buffer.

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