TE Edit Control Win32 / Win64 Help
Product page

TerGetPageCount

Get the page count and current page number.

BOOL TerGetPageCount(hWnd, TotalPages, CurPage)
HWND hWnd;The handle of the window to be accessed
LPINT TotalPages;This variable receives the total number of pages in the document
LPINT CurPage;This variable receives the current page number (Zero based)

Comment: This function is valid in the PageMode only.

Return Value: This function returns TRUE when successful.