TE Edit Control Win32 / Win64 Help
Product page

TerGetParam

Retrieve miscellaneous operating variables.

BOOL TerGetParam(hWnd, type)
HWND hWnd;The handle of the window to be accessed
int type;The parameter type to retrieve:
TP_CUR_LINECurrent line number
TP_CUR_COLCurrent column number
TP_CUR_SECTCurrent section id
TP_MOUSE_X

Returns the pixel x position where the mouse is located.

This value is relevant only when retrieved from the PreProcess or Action events for a mouse message.

TP_MOUSE_Y

Returns the pixel y postion when the mouse is located.

This value is relevant only when retrieved from the PreProcess or Action events for a mouse message.

TP_MOUSE_LINE

Return the text line number where the mouse is located.

This value is relevant only when retrieved from the PreProcess or Action events for a mouse message.

TP_MOUSE_COL

Return the text column number where the mouse is located.

This value is relevant only when retrieved from the PreProcess or Action events for a mouse message.

TP_MOUSE_FONT_ID

Return the font id for the character where the mouse is located.

This value is relevant only when retrieved from the PreProcess or Action events for a mouse message.

TP_MOUSE_PICT_ID

Return the picture id for the picture where the mouse is located. If the mouse is not positioned over a picture object, then the return value would be 0.

This value is relevant only when retrieved from the PreProcess or Action events for a mouse message.

TP_MOUSE_FIELD_ID

Return the field-id for the field where the mouse is located. If the mouse is not positioned over a field, then the return value would be 0.

This value is relevant only when retrieved from the PreProcess or Action events for a mouse message.

TP_MOUSE_ON_TEXT_LINEReturns TRUE if the mouse is located on a text line. This value is meaningful only when retrieved after calling the TerPixToTextPos method.
TP_PAGE_BK_COLORPage background color
TP_SELCTION_TYPE

Selection type: Set to HILIGHT_OFF if no text is selected. Any other value indicates that a text block is selected.

The following four TP_SELECTION_ constants are not valid if the selection type is HILIGHT_OFF.

TP_SELCTION_START_LINESelection start line.
TP_SELCTION_START_COLSelection start col.
TP_SELCTION_END_LINESelection end line.
TP_SELCTION_END_COLSelection end col.
TP_TOTAL_BLTSTotal number of bullet ids in the document.
TP_TOTAL_CELLSTotal number of cell ids in the document.
TP_TOTAL_CHAR_TAGSTotal number of character tags in the document
TP_TOTAL_FONTSTotal number of font ids in the document.
TP_TOTAL_IMAGE_MAPSTotal number of image maps in the document.
TP_TOTAL_LINESTotal number of lines in the document.
TP_TOTAL_LISTSTotal number of list ids in the document.
TP_TOTAL_LIST_ORTotal number of list-override ids in the document.
TP_TOTAL_PAGESTotal number pages in the document.
TP_TOTAL_PARA_FRAMESTotal number of paragraph frames in the document
TP_TOTAL_PFMTSTotal number of paragraph ids in the document.
TP_TOTAL_SECTSTotal number of section ids in the document.
TP_TOTAL_STYLESTotal number of style ids in the document.
TP_TOTAL_TABSTotal number of tab ids in the document.
TP_TOTAL_TABLE_ROWSTotal number of table row ids in the document.
TP_WATERMARK_WASHThe return value is 1 if watermark picture is washed, otherwise the return value is 0.
TP_WATERMARK_PICTReturns the picture id for the current watermark picture. Returns 0 if watermark is not set for the document.
TP_TOTAL_REVIEWERSTotal number of reviewer ids. Id# 0 is not used.

Return Value: This function returns the value of the requested parameter. It returns -1 to indicate an error condition.