Edit

Share via


GET_XBUTTON_WPARAM macro (winuser.h)

Retrieves the state of certain buttons from the specified WPARAM value.

Syntax

int GET_XBUTTON_WPARAM(
    WPARAM wParam
);

Parameters

wParam

The value to be converted.

Return value

Type: int

The high-order word indicates which button was released. It can be either of the following values:

Return code Value Description
XBUTTON1 0x0001 The first X button was released.
XBUTTON2 0x0002 The second X button was released.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)

See also

Mouse Input Overview