TE Edit Control Win32 / Win64 Help
Product page

TerSetInitTypeface

Set the initial font typeface.

BOOL TerSetInitTypeface(typeface)
HWND hWnd;The handle of the window to be accessed
LPBYTE typeface;Initial font typeface. The editor uses this font typeface as the default font for the TerMergePrint function. It also uses this typeface if the editor window is created without specifying a font typeface, or if the window is created using the OCX control.

Description: To be effective, this function must be called before any editor window is created and before calling the TerMergePrint function.

Comments: This function is not available as an ActiveX control method. It must be used as a DLL function.

Return Value: This function returns TRUE when successful.