# VAPIM_GETNEXTTEXTBUFFER

Gets text buffers in index-only mode.

## Syntax

    #include <kvvapi.h>
    SendMessage(hWndVAPI, VAPIM_GETNEXTTEXTBUFFER, 0, 0L );

## Arguments

Argument | Description
--- | ---
`hWndVAPI` | The handle of the VAPI window.

## Returns

`SendMessage()` returns `TRUE` if a text buffer was returned, and `FALSE` if there are no more text buffers in the document, that is, the end of document is reached.

## Discussion

This message is used to generate `VAPINM_TEXTBUFFER` notification messages when Viewing is in index-only mode (except for the very first text buffer, which comes automatically after a `VAPIMWP_INIT_OPEN_DOCUMENT` message is sent). The `VAPINM_TEXTBUFFER` notification messages is received before this message returns.

There might be two notification messages generated, one for the text buffer and one to indicate the end of the document.

© 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