Winapi.Messages.TWMKey

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TWMKey = record

C++

struct DECLSPEC_DRECORD TWMKey
{
public:
    unsigned Msg;
    System::Word CharCode;
    System::Word Unused;
    int KeyData;
    NativeInt Result;
};

Properties

Type Visibility Source Unit Parent
record
struct
public
Winapi.Messages.pas
Winapi.Messages.hpp
Winapi.Messages Winapi.Messages

Description

TWMKey represents a Windows Keystroke message.

TWMKey is the data structure used in some Windows keyboard messages.

TWMKey contains the following fields.



Field Meaning

Msg

Represents the Windows message code.

CharCode

Specifies the virtual key code for the key pressed by the user. This is either an ANSI character or a virtual key constant, such as VK_CANCEL.

Unused

Unused.

KeyData

Indicates the repeat count, scan code, extended-key flag, context code and so on. See the Windows help system for a keystroke message such as WM_KEYDOWN for details on the possible values.

Result

Holds the value returned by the application processing the message.



See Also