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.


_HP_HTML5_bannerTitle.htm