# VAPIMWP_DRAW_GETPAGESIZE

## Description

Gets the default size of a page. This is a parameter of the `VAPIM_DRAW` message.

## Syntax

    #include <kvvapi.h>
    SendMessage(hWndVAPI, VAPIM_DRAW, VAPIMWP_DRAW_GETPAGESIZE,
               (LPARAM) (TPVAPIPageSize*) pPageSize );

## Arguments

Argument | Description
--- | ---
`hWndVAPI` | The handle of the VAPI window.
`pPageSize` | A pointer to a TPVAPIPageSize structure which contains information on the page size.

## Returns

SendMessage() returns:

- `VAPI_RETURN_SUCCESS` if the call succeeds.

- `VAPI_RETURN_NOT_INITIALIZED` if the drawing routines have not been initialized.

- `VAPI_RETURN_NO_PAGE` if the requested page does not exist or is being displayed before all previous pages have been displayed.

- `VAPI_RETURN_NOT_AVAILABLE` if the document does not support this feature (for example, ZIP files, video, audio).

- `VAPI_RETURN_ERROR` if an error has occurred.

## Discussion

Before you send this message:

- Initialize VAPI by sending the VAPIMWP_DRAW_INIT message.

- Open the document by sending the VAPIMWP_INIT_OPEN_DOCUMENT message.

- Send the VAPIMWP_DRAW_DRAWPAGE message to draw the page.

© Copyright 2016-2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm