VAPIMWP_VIEW_SETLAYOUT

Description

Sets the layout of the document. This is a parameter of the VAPIM_VIEW message.

Syntax

#include <kvvapi.h>
SendMessage(hWndVAPI, VAPIM_VIEW, VAPIMWP_VIEW_SETLAYOUT,
           (LPARAM) (long) lLayout );

Arguments

Argument

Description

hWndVAPI

The handle of the VAPI window.

lLayout

A long integer that is the document layout:

LOWORD(lLayout)  0  Wrap to window.

LOWORD(lLayout)  1  Page layout.

HIWORD(lLayout)  0  Scale page to window width.

HIWORD(lLayout)  n  Scale page to custom percentage.

Returns

SendMessage() returns TRUE if the call succeeds; otherwise it returns FALSE.

Discussion

Use this message to implement a Wrap to Window, Page Layout, or Window Width menu item or toolbar button.


_HP_HTML5_bannerTitle.htm