TE Edit Control Win32 / Win64 Help
Product page

TerSetZoom

Set the zoom percentage.

int TerSetZoom(hWnd, ZoomPercent)
HWND hWnd;Window handle to access
int ZoomPercent;Specify a value between 10 and 1000, the 100 being the normal display. You can set this argument to – 2 (minus 2) to simply retrieve the current zoom percent with changing it.

Return Value: This function returns the previous zoom percent. It returns -1 if an error occurs.