TE Edit Control Win32 / Win64 Help
Product page

TerGetCurFont

Retrieve the font id (or picture id) at the given location.

int TerGetCurFont(hWnd, LineNo, ColNo)
HWND hWnd;The handle of the window to be accessed
long LineNo;line number for the location. Set to -1 to use the current text line and column position.
int ColNo;column number for the location.

Return Value: This function returns the font id for the character at the given location.

Note: For a picture character, the font ids is same as the picture id. So the font id returned by the TerGetCurFont function is actually a picture id if the LineNo/ColNo parameters point to a picture.