TE Edit Control Win32 / Win64 Help
Product page

TerInsertBookmark

Insert a bookmark.

int TerInsertBookmark(hWnd, line, col, name)
HWND hWnd;The handle of the window to be accessed
long line;The text line number where to insert the bookmark. Set to -1 to insert the bookmark at the current cursor location.
int col;The text column position to insert the bookmark. This argument is ignored if the 'line' argument is set to -1.
LPBYTE name;Bookmark name. The name may consist of regular alphabetic characters, but it may not contain spaces.

Return Value: This function returns a non-zero bookmark id, if successful. Otherwise it returns zero.

See Also: TerDeleteBookmark, TerGetBookmark, TerPosBookmark