SetTerFont
Set font typeface for the text
BOOL SetTerFont(hWnd, typeface, repaint)
HWND hWnd; | The handle of the window to be accessed |
LPBYTE typeface; | typeface of the new font |
BOOL repaint; | TRUE to refresh the window after this operation |
Description: This function is used to apply the new font typeface to the text. If a text block is highlighted, this operation is applicable to all characters in the block. Otherwise only the current character is affected.
Return Value: This function returns TRUE if successful.
Example:
// select the first 40 characters of the first line.
SelectTerText(hWnd,0,0,0,40,FALSE);
// apply Arial font typeface to the selected text
SetTerFont(hWnd,"Arial",TRUE);