TE Edit Control Win32 / Win64 Help
Product page

TerLocateInputField

Locate an input field in the document.

int TerLocateInputField(hWnd, location, repaint)
HWND hWnd;Handle of the window to be accessed
int location;Use one of the following constants:
TER_FIRST:Search from the top of the file and locate the first occurrence of the input field.
TER_LAST:Search from the bottom of the file and locate the last occurrence of the input field.
TER_NEXT:Find the next occurrence of the input field.
TER_PREV:Find the previous occurrence of the input field.
TER_CUR:Current field with focus
BOOL repaint:Set to TRUE to repaint the screen after this operation.

Return Value: This function returns the object id of the located field when successful. Otherwise, it return 0.