TE Edit Control Win32 / Win64 Help
Product page

TerRestrictFont

Restrict the font size and styles.

BOOL TerRestrictFont(hWnd, MinSize, MaxSize, RestrictStyles, UpdateToolbar)
HWND hWnd;The handle of the window to be accessed.
int MinSize;The smallest point-size of the fonts to allow
int MaxSize;The largest point-size of the fonts to allow
int RestrictStyles;Use this parameter to specify the styles not to be allowed. The styles are specified by using the style bits. Please refer to the SetTerCharStyle method for a list of the valid style bits.
BOOL UpdateToolbar;TRUE to update the tool-bar immediately to reflect the changes.

Return Value: This function returns TRUE when successful.