TE Edit Control Win32 / Win64 Help
Product page

TerGetHdrFtrPos

Check if a line is location in a header or footer area

int TerGetHdrFtrPos(hWnd, line)
HWND hWnd;The handle of the window to be accessed
long line;The line number to find the position. Set to -1 to find the location for the current line.

Return Value: This function returns the following values to indicate the line position:

LFLAG_HDRThe line is location in a regular page header
LFLAG_FTRThe line is location in a regular page footer
LFLAG_FHDRThe line is location in first page header
LFLAG_FFTRThe line is location in first page footer
LFLAG_RHDRThe line is location in right (odd) page header
LFLAG_RFTRThe line is location in right (odd) page footer
LFLAG_LHDRThe line is location in left (even) page header
LFLAG_LFTRThe line is location in left (even) page footer
0The line is location in page body text