TerGetPageOrient
Get the page orientation and dimensions.
int TerGetPageOrient(hWnd, PageNum)
int TerGetPageOrientEx(hWnd, PageNum, pWidth, pHeight)
int TerGetPageOrient2(hWnd, PageNum, pWidth, pHeight, pHiddenX, pHiddenY)
HWND hWnd; | The handle of the window to be accessed |
int PageNum; | Page number between 0 and TotalPages-1 |
LPINT pWidth; | Pointer to receive the page width (in twips) after considering the orientation. |
LPINT pHeight; | Pointer to receive the page height (in twips) after considering the orientation. |
LPINT pHiddenX; | Pointer to receive the printer hidden area (in twips) in the x direction. |
LPINT pHiddenY; | Pointer to receive the printer hidden area (in twips) in the y direction. |
Description: This function is available in the PageMode or PrintView mode only.
Return Value: This function returns the following constants to indicate the page orientation:
Portrait: | DMORIENT_PORTRAIT (value 1) |
Landscape: | DMORIENT_LANDSCAPE (value 2) |