# VAPIMWP_OPTIONS_SETOPTIONS_EX

## Description

Sets the current document options. Document options control display elements such as window size, zoom settings, margin size, and scaling. Options are defined for each file type category (for example, spreadsheets, multimedia, and word processing). This is a parameter of the `VAPIM_OPTIONS` message. See Change Document Options.

## Syntax

    #include <kvvapi.h>
    #include <kwoption.h>
    SendMessage(hWndVAPI, VAPIM_OPTIONS,
                VAPIMWP_OPTIONS_SETOPTIONS_EX,
               (LPARAM) (ALL_OPTIONS_EX*) lpAllOptions );

## Arguments

Argument | Description
--- | ---
`hWndVAPI` | The handle of the VAPI window.
`lpAllOptions` | A pointer to an ALL_OPTIONS_EX structure that shows the document options.

## Returns

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

## Discussion

Use this message to set the options for the document. This message does not save the document options in the registry. In addition, this message sets the document options for the current document and document type only. In other words, it initializes the in-memory options of the current Viewer.

© Copyright 2016-2020 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