TPVAPIDrawPageInfo

Description

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.


_HP_HTML5_bannerTitle.htm