Using Win32 functions in Visual FoxPro Image Gallery
Mouse Input
Code examples:
    Add comment     W32 Constants      Translate this page
The SwapMouseButton function reverses or restores the meaning of the left and right mouse buttons
Code examples:
BOOL SwapMouseButton(
  BOOL fSwap   // reverse or restore buttons
FoxPro declaration:
DECLARE INTEGER SwapMouseButton IN user32 INTEGER bSwap
[in] Specifies whether the mouse button meanings are reversed or restored. If this parameter is TRUE, the left button generates right-button messages and the right button generates left-button messages. If this parameter is FALSE, the buttons are restored to their original meanings
Return value:
If the meaning of the mouse buttons was reversed previously, before the function was called, the return value is nonzero.

If the meaning of the mouse buttons was not reversed, the return value is zero
My comment:
The usage is simple:

DECLARE INTEGER SwapMouseButton IN user32;
        INTEGER bSwap

= SwapMouseButton(1) && swaps
= SwapMouseButton(0) && restores defaults

Also GetSystemMetrics can read the swap state (SM_SWAPBUTTON).
Word Index links for the SwapMouseButton :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2001-07-19 12:00:00
Modified: 2006-06-13 10:09:38
Visited in last 7 days: 34
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
6 sec.Function: 'AVIFileWriteData'
12 sec.Function: 'CreateFileTransacted'
19 sec.Function: 'GetClipboardFormatName'
24 sec.Example: 'Winsock: connecting to a news server (NNTP, port 119)'
32 sec.Function: 'JetOpenTable'
38 sec.Function: 'WNetCancelConnection2'
44 sec.
Function group: 'Metafile'
51 sec.Example: 'Using FrameRgn for displaying system colors'
58 sec.Function: 'GetKeyboardLayoutList'
1.08 min.Function: 'RegOpenKeyEx'
Advertise here!