KeyView 24.1

# TPVAPIDrawPageInfo

This structure defines the parameters used by the VAPIMWP_DRAW_DRAWPAGE message to draw a page into a device context.

## Syntax

    #include <kvvapi.h>
    typedef struct tag_TPVAPIDrawPageInfo
    {
        HDC                hdc;
        unsigned int       nPage;
        RECT               Rect;
        RECT               RectUsed;
        BOOL               bCentre;
        HBRUSH             hBrush;
    }
    TPVAPIDrawPageInfo;

## Members

`hdc` | The device context in which to draw the page.
`nPage` | The number of the page to draw. Page numbers start at 0. For example, set `uPage` to `0` to draw page 1, and to `1` to draw page 2. For word processing documents, pages must be drawn sequentially. For example, to draw page 3, you must first draw pages 0 and 1. If the `bWait` member of `TPVAPIOpenDocumentInfo` is set to `FALSE`, you can draw any page. See TPVAPIOpenDocumentInfo. If the page you request is beyond the last page, a `VAPI_RETURN_NO_PAGE` error is returned.
`Rect` | A rectangle in the device coordinates specifying where to draw the page.
`RectUsed` | Returns the rectangle that the page was actually drawn in. `RectUsed` might be different than `Rect` because Viewing maintains the aspect ratio of the document.
`bCentre` | Because `RectUsed` might be different than `Rect`, this flag specifies whether the page should be centered in `Rect`.
`hBrush` | The handle of a brush used to paint the background when `RectUsed` is different than `Rect`. If this is `NULL`, the background is not filled.

Copyright 2016-2023 Open Text
Version 24.1 | Last updated December 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL KeyView 24.1

Topic Title: TPVAPIDrawPageInfo