KeyView 23.2

# 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-2023 Open Text
Version 23.2 | Last updated March 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL KeyView 23.2

Topic Title: VAPIMWP_INIT_GETCHARSET