VAPIM_ENABLEINDEX

Description

Enables index-only mode, also called document filtering. This generates text buffer (VAPINM_TEXTBUFFER) notification messages with document viewing disabled. The first text buffer notification message is generated after a VAPIMWP_INIT_OPEN_DOCUMENT message is sent. To get additional text buffer notification messages in this mode, call the VAPIM_GETNEXTTEXTBUFFER message.

Syntax

#include <kvvapi.h>
SendMessage(hWndVAPI, 
            VAPIM_ENABLEINDEX, 
           (WPARAM) n_IndexMode,
           (LPARAM) (TPVAPIHiLiteColor*) lpHiLiteColor );

Arguments

Argument

Description

hWndVAPI

The handle of the VAPI window.

n_IndexMode

0 – Combined mode (document view and text buffers)

1 – Text buffers only

2 – Disable index (document view only)

lpHiLiteColor

A pointer to a TPVAPIHiLiteColor structure that defines the highlight color used to signify an index hit.

Returns

SendMessage() returns TRUE if successful; FALSE otherwise.

Discussion


_HP_HTML5_bannerTitle.htm