TE Edit Control Win32 / Win64 Help
Product page

TerSetTextFieldInfo

Set new information for a textbox input field.

BOOL TerSetTextFieldInfo(hWnd,id, data, MaxChars, width, typeface, TwipsSize, style)
HWND hWnd'The handle of the window to be accessed
int id;Input field id to retrieve information.
LPBYTE data;The new text data for the text box.
int MaxChars;The maximum text length for the text box. Set to 0 for no maximum limit.
int width;This is a reserved field. It should be set to 0.
LPBYTE typeface;The font typeface for the text in the text box.
int TwipsSize;The font typeface size in twips (20 twips = 1 point).
uint style;

The style information for the font. Set to 0 for default. The following styles can be selected for the text box.

BOLD Bold style
ITALIC Italic style
ULINE Underline style

Please use the logical OR operator to specify more than one flag.

Return Value: This function returns TRUE when successful.