TE Edit Control Win32 / Win64 Help
Product page

TerFindHlinkField

Locate the next hyperlink field.

BOOL TerFindHlinkField(hWnd, CodePart1, CodePart2, pLine, pCol)
HWND hWnd;The handle of the window to be accessed
LPBYTE CodePart1;The part of the hyperlink code or url to search for
LPBYTE CodePart2;Another part of the hyperlink code or url to search for
long far *pLine;The line number to start the search. This variable also receives the line number of the hyperlink on successful search.
Long far *pCol;The column number to start the search. This variable also receives the column number of the hyperlink on successful search.

Description: This function examines the hyperlinks in the document. A hyperlink is matched if either CodeString1 or CodeString2 is found in the hyperlink code or url.

Return Value: This function returns TRUE when a hyperlink is located. On successful search, the line and column number of the hyperlink is returned using the pLine and pCol variables.