# VAPIMWP_INIT_GETCHARSET

Gets the character set of the VAPI window. This is a parameter of the `VAPIM_INIT` message.

## Syntax

    SendMessage(g_hWndFocus, VAPIM_INIT, VAPIMWP_INIT_GETCHARSET, 0)

## Arguments

Argument | Description
--- | ---
`hWndVAPI` | The handle of the VAPI window.
`uMsg` | `VAPIM_INIT`
`wParam` | `VAPIMWP_INIT_GETCHARSET`
`lParam` | Not used, set to `0`

## Returns

This message returns a value from the `KVCharSet` type (see the `kvcharset.h` file for a description) corresponding to the character set that VAPI is using for viewing the document. You can use this message to control the state of a menu item or toolbar button that allows a user to select a character encoding for viewing.

## Discussion

- `vapidemo.cpp` demonstrates how to use the message.

- A relevant message is `VAPIMWP_INIT_GETAUTOSELECT`.

© 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