TE Edit Control Win32 / Win64 Help
Product page

TerGetFrameParam

Get the frame object parameters.

int TerGetFrameParam(hWnd, id, type)
HWND hWnd;The handle of the window to be accessed
int id;Frame item id to retrieve parameters.
int type;The parameter to retrieve:
FP_TEXT_ROTATION:Return the text rotation type. Please refer to the TerRotateFrameText function for a list of text rotation type constants.
FP_WRAP_STYLEReturn the text wrap style. Please refer to the TerSetObjectWrapStyle function for a list of text wrap style.
FP_YBASEReturn the vertical base position for the frame. Please refer to the TerSetFrameYBase function for a list of base constants.
FP_FILL_PATTERNFill pattern: 0=Transparent, 1=Solid
FP_TEXT_DISTText distance from the frame in twips.

Return Value: The function returns the value for the requested parameter. It returns FP_ERROR to indicate an error condition.