TerGetTag
Retrieve the tag at the specified text position:
int TerGetTag (hWnd, line, col, name, AuxText, AuxInt, flags)
int TerGetTagEx (hWnd, line, col, type, name, AuxText, AuxInt, flags)
HWND hWnd; | The handle of the window to be accessed |
long line; | The line position of the text. Set to -1 to use the current cursor position. |
int col; | The column position of the text. This parameter is ignored if the 'line' parameter is set to -1. |
int type; | Tag type (used by TerGetTagEx function only): |
TERTAG_BKM: | Bookmark tags |
TERTAG_USER: | Generic tags |
LPBYTE name; | The location to retrieve the tag name. |
LPBYTE AuxText; | The location to retrieve any auxiliary text string associated with the tag. |
LPLONG AuxInt; | The location to retrieve any auxiliary numeric data associated with the tag. |
UINT far *flags; | The location to retrieve tag flags (reserved for future use). |
Return Value: This function returns the unique tag id at the specified location. It returns 0 if no tag is found at the location, or if an error is encountered.