TE Edit Control Win32 / Win64 Help
Product page

TerGetPictCropping

Retrieve picture cropping values.

int TerGetPictCropping(hWnd, pict, type)
HWND hWnd;The handle of the window to be accessed
int pict;Id of the picture. Must be a valid number between 0 and TotalFonts - 1.
int type;

Cropping type. Use one of the following variables:

CROP_LEFT: Left cropping
CROP_RIGHT: Right cropping
CROP_TOP: Top cropping
CROP_BOT: Bottom cropping

Return Value: This function returns the picture cropping value (in twips unit) for the selected side of the picture. The function returns -1 to indicate an error condition.