KeyView 23.4

# VAPIMWP_OPTIONS_SETOPTIONS_EX

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-2023 Open Text
Version 23.4 | Last updated September 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 swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL KeyView 23.4

Topic Title: VAPIMWP_OPTIONS_SETOPTIONS_EX