TE Edit Control Win32 / Win64 Help
Product page

TerLocateStyle

Locate text with the given character style.

BOOL TerLocateStyle(hWnd,style,StartLine, StartCol, StringLen)
HWND hWnd;Handle of the window to be accessed
WORD style;Style bits:
BOLD:Bold
ULINE:Underline
ULINED:Double Underline
ITALIC:Italic
STRIKE:Strikethrough
SUPSCR:Superscript
SUBSCR:Subscript
HIDDEN:Hidden Text
PROTECT:Protected Text
CAPSAll Caps
SCAPSSmall Caps
PICTPicture

Use the logical OR (|) operator to specify more than one styles. The search is successful when any of the specified styles are located.

long far *StartLine:(INPUT/OUTPUT) Specifies the pointer to the line number to start the search. On a successful search, this field contains the line number of the located text.
int far *StartCol:(INPUT/OUTPUT) Specifies the pointer to the column number to start the search. On a successful search, this field contains the column number of the located text.
int far *StringLen:(OUTPUT) Specifies the pointer to the integer location that receives the length of the located text. The editor matches the text up to the end of the line.

Description: Use this function to locate the beginning of the text with the given character styles.

Return Value: This function returns a TRUE value when successful.