# VAPIMWP_VIEW_END

Sets the play mode of a multimedia document to stop at the end after playing. This is a parameter of the `VAPIM_VIEW` message.

## Syntax

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

## Arguments

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

## Returns

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

## Discussion

Use this message to implement a Stop At End menu item or toolbar button.

_FT_HTML5_bannerTitle.htm