TE Edit Control Win32 / Win64 Help
Product page

TerInsertFootnote

Insert a footnote.

int TerInsertFootnote(hWnd, FnMarker, FnText, style, repaint)
int TerInsertFootnote2(hWnd, FnMarker, FnText, style, IsFootnote, repaint)
HWND hWnd;The handle of the window to be accessed
LPBYTE FnMarker;footnote marker
LPBYTE FnText;footnote text. Set this parameter to NULL to invoke a dialog box for the user to enter the footnote parameters.
UINT style;footnote marker style. The style can be any combination of BOLD, ULINE, ITALIC, and SUPSCR. Typically, the style is set to SUPSCR.
BOOL IsFootnote;Set to TRUE to insert a footnote. Set to FALSE to insert a endnote. This argument is applicable to the TerInsertFootnote2 function only. The TerInsertFootnote function only inserts a footnote.
BOOL repaint;TRUE to repaint the screen after the operation.

Description: This function inserts a footnote at the current cursor location. The cursor is positioned after the footnote text upon the completion of this operation.

Return Value: This function returns TRUE when successful.