TE Edit Control Win32 / Win64 Help
Product page

TerChangeFieldRtf

Apply the rtf data to a field.

BOOL TerChangeFieldRtf(hWnd, name, rtf, RtfLen, repaint)
BOOL TerChangeFieldRtfU(hWnd, name, UnicodeRtf, RtfLen, repaint)
HWND hWnd;Handle of the window to be accessed
LPBYTE name;Name of the field to modify
LPBYTE rtf;New RTF data for the field. This parameter is used by the TerChangeFieldRtf function only.
LPWORD UnicodeRtf;New RTF data in the unicode format for the field. This parameter is used by the TerChangeFieldRtfU function only.
int RtfLen;The character length of the RTF data.
BOOL repaint;TRUE to repaint the screen after this operation

Description: This function changes the data for all occurrence of the specified field name.

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