TerGetCellParam
Get additional cell parameters.
BOOL TerGetCellParam(hWnd, type, id, value)
long TerGetCellParam2(hWnd, type, id)
HWND hWnd; | The handle of the window to be accessed |
int type; | The parameter to retrieve: |
CP_TEXT_ROTATION: | Return the text rotation type. Please refer to the TerCellRotateText function for a list of text rotation type constants. |
CP_PARENT_CELL | The parent cell id for the requested cell. |
CP_LEVEL | Nesting level for the cell. |
CP_TEXT_ROTATION | Returns the following values for text direction: |
TEXT_TOP_TO_BOT: Top To bottom
TEXT_BOT_TO_TOP: Bottom to top
TEXT_HORZ: HorizontalCP_WIDTH | Cell width in twips. |
CP_ROW | Row id which contains the specified cell. |
CP_ID | Id of the specified cell. Same as the 'id' parameter, unless the 'id' parameter is set to -1. |
CP_NEXT | Id of the next cell in the current row. |
CP_PREV | Id of the previous cell in the current row. |
CP_ROW_WIDTH | Width (in twips) of the row which contains the specified cell. |
CP_PAD_LEFT | Cell left padding in twips. |
CP_PAD_RIGHT | Cell right padding in twips. |
CP_PAD_TOP | Cell top padding in twips. |
CP_PAD_BOT | Cell bottom padding in twips. |
int id; | Cell id to retrieve parameters. Set to -1 to use the cell id of the current line. |
LPINT value | The variable to receive the requested value. |
Return Value: If successful, the TerGetCellParam function returns a TRUE value, and the requested value is returned using the 'value' parameter. A FALSE value indicates an error.
If successful, the TerGetCellParam2 method returns the value of the requested parameter. A return value of CP_ERROR indicates an error.