TerSetDefTextColor
Set default text foreground color.
BOOL TerSetDefTextColor(hWnd, ForeColor, repaint)
HWND hWnd; | The handle of the window to be accessed. |
COLORREF NewWidth; | new text foreground color. |
BOOL repaint; | TRUE to repaint the screen after this operation. |
Description: The new text color is effective only for the current session. The new text color is not written out when the document is saved.
Please use the GetTerFields/SetTerFields functions to change the background color of the text window.
Return Value: This function returns TRUE when successful..
TerSetEffectiveFont
Override the effective font for editing.
BOOL TerSetEffectiveFont(hWnd, FontId)
HWND hWnd; | The handle of the window to be accessed |
int FontId; | The font id to use for editing. |
Description: Normally, when the user click on a text location, the editor picks a font for text entry at that location. You can override this font automatic selection by using this function. This function can also be used to set a suitable font before inserting the text using the InsertTerText function.
Return Value: This function returns TRUE if successful.