TE Edit Control Win32 / Win64 Help
Product page

TerSetFontId

Set the object id for the next object to be inserted.

BOOL TerSetFontId(hWnd, int NextId)
HWND hWnd;The handle of the window to be accessed
int NextId;The id to use by the next object to be inserted.

Description: Normally, the editor assigns a new id when an object (font or picture) is inserted in the text. This function can be used to utilize an existing id for the object. The object at the existing id is released before associating the new object with this id.

Return Value: This function returns TRUE if successful.