TE Edit Control Win32 / Win64 Help
Product page

TerGetFrameSize

Retrieve the location and size of the frame.

BOOL TerGetFrameSize(hWnd, FrameId, x, y, width, height)
HWND hWnd;The handle of the window to be accessed
int FontId;Frame id to inquire. If the frame id is 0, the function returns the values for the frame at the current cursor location.
LPINT x;pointer to receive the x location relative to the left edge of the page in twips units.
LPINT y;pointer to receive the y location relative to the top edge of the page in twips units.
LPINT width;pointer to receive the width of the frame in twips.
LPINT height;pointer to receive the height of the frame in twips.

Return Value: This function returns TRUE when successful.