TE Edit Control Win32 / Win64 Help
Product page

TerInsertPageRef

Insert page reference field.

BOOL TerInsertPageRef(hWnd, bookmark, IsHyperlink, IsAlphabetic, repaint)
HWND hWnd;The handle of the window to be accessed
LPBYTE bookmark;The name of the bookmark to build a reference. The bookmark must already exists in the document. You can use the TerInsertBookmark function to insert a bookmark.
BOOL IsHyperlink;

Set to True to treat this page reference as a hyperlink. When the user click on this page-reference hyperlink, the cursor will jump to the referenced bookmark.

The hyperlink cursor must be turned on using the ID_SHOW_HYPERLINK_CURSOR command to display the hyperlink cursor.

BOOL IsAlphabetic;Set to True to display the page number in the alphabetic format.
BOOL repaint;Repaint the window after this operation

Comment: The page-reference field displays the page number where the referenced bookmark is located.

Return Value: This function returns a True value when successful, otherwise it returns a false value.