TE Edit Control Win32 / Win64 Help
Product page

TerSelectCharStyle

Apply a character stylesheet item.

BOOL TerSelectCharStyle(hWnd, StyleId, repaint)
HWND hWnd;The handle of the window to be accessed.
int StyleId;Character style id to apply
BOOL repaint;TRUE to refresh the screen after this operation.

Description: This function is used to assign the given character style to a highlighted block of text. If a text block is not highlighted, the given style id is used for the next keyboard input.

Return Value: This function returns TRUE when successful.