User32SwapMouseButton Method
Reverses or restores the meaning of the left and right mouse buttons.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", ExactSpelling = true)]
public static bool SwapMouseButton(
bool swap
)
<DllImportAttribute("User32.dll", ExactSpelling := true>]
Public Shared Function SwapMouseButton (
swap As Boolean
) As Boolean
Dim swap As Boolean
Dim returnValue As Boolean
returnValue = User32.SwapMouseButton(swap)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true)]
static bool SwapMouseButton(
bool swap
)
[<DllImportAttribute("User32.dll", ExactSpelling = true)>]
static member SwapMouseButton :
swap : bool -> bool
No code example is currently available or this language may not be supported.
- swap Boolean
-
If this parameter is , the left button generates right-button messages and the right button generates left-button messages.
If this parameter is , the buttons are restored to their original meanings.
Boolean
If the meaning of the mouse buttons was reversed previously, before the function was called, the return value is
.
If the meaning of the mouse buttons was not reversed, the return value is
.