TE Edit Control Win32 / Win64 Help
Product page

TerSetUlineColor

Set the color to draw underline.

BOOL TerSetUlineColor(hWnd, color, repaint)
HWND hWnd;The handle of the window to be accessed.
COLORREF color;new underline color.
BOOL repaint;TRUE to repaint the screen after this operation.

Description: This function does not automatically apply the underline attribute to the text. The SetTerCharStyle function should be used to apply the underline attribute.

Return Value: This function returns TRUE when successful..