Using Win32 functions in Visual FoxPro Image Gallery
Mouse Input
..msdn
DragDetect
GetCapture
GetDoubleClickTime
GetMouseMovePointsEx
ReleaseCapture
SetCapture
SetDoubleClickTime
SwapMouseButton
Code examples:
SwapMouseButton
    Add comment     W32 Constants      Translate this page
The SwapMouseButton function reverses or restores the meaning of the left and right mouse buttons
Code examples:
Declaration:
BOOL SwapMouseButton(
  BOOL fSwap   // reverse or restore buttons
);
FoxPro declaration:
DECLARE INTEGER SwapMouseButton IN user32 INTEGER bSwap
Parameters:
fSwap
[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  
FreeTranslation.com 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: 17
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.156.36.82)
7 sec.Function: 'WNetCancelConnection2'
15 sec.Function: 'SetPrinter'
22 sec.Function: 'RegQueryValueEx'
31 sec.Function: 'WideCharToMultiByte'
40 sec.Function: 'SQLGetConnectAttr'
50 sec.Function: 'waveOutSetVolume'
1 min.Function: 'WSAGetLastError'
1.2 min.Function: 'waveInOpen'
1.62 min.Function: 'WaitForSingleObject'
Google
Advertise here!