Using Win32 functions in Visual FoxPro Image Gallery
Mouse Input
..msdn
DragDetect
GetCapture
GetDoubleClickTime
GetMouseMovePointsEx
ReleaseCapture
SetCapture
SetDoubleClickTime
SwapMouseButton
Code examples:
GDI+: Implementing image scrolling with inertia
GetMouseMovePointsEx
..msdn    Add comment     W32 Constants      Translate this page
Retrieves a history of up to 64 previous coordinates of the mouse or pen.
Code examples:
GDI+: Implementing image scrolling with inertia
Declaration:
int WINAPI GetMouseMovePointsEx(
  _In_   UINT cbSize,
  _In_   LPMOUSEMOVEPOINT lppt,
  _Out_  LPMOUSEMOVEPOINT lpptBuf,
  _In_   int nBufPoints,
  _In_   DWORD resolution
);
FoxPro declaration:
DECLARE INTEGER GetMouseMovePointsEx IN user32;
    INTEGER cbSize,;
    STRING @lppt,;
    STRING @lpptBuf,;
    INTEGER nBufPoints,;
    INTEGER resolution
Parameters:
cbSize [in]
The size, in bytes, of the MOUSEMOVEPOINT structure.

lppt [in]
A pointer to a MOUSEMOVEPOINT structure containing valid mouse coordinates (in screen coordinates). It may also contain a time stamp.

lpptBuf [out]
A pointer to a buffer that will receive the points. It should be at least cbSize* nBufPoints in size.

nBufPoints [in]
The number of points to be retrieved (up to 64).

resolution [in]
The resolution desired: GMMP_USE_DISPLAY_POINTS (1), GMMP_USE_HIGH_RESOLUTION_POINTS (2)
Return value:
If the function succeeds, the return value is the number of points in the buffer.
Usage:
#DEFINE MOUSEMOVEPOINT_SIZE 16
#DEFINE GMMP_USE_DISPLAY_POINTS 1

nCount = 64

cBuffer = REPLICATE(CHR(0), 8)
GetCursorPos(@cBuffer)
cIn = PADR(cBuffer, 16, CHR(0))

cOut = REPLICATE(;
    CHR(0),;
    MOUSEMOVEPOINT_SIZE * nCount)

nResult = GetMouseMovePointsEx(;
    MOUSEMOVEPOINT_SIZE,;
    @cIn,;
    @cOut,;
    nCount,;
    GMMP_USE_DISPLAY_POINTS)

? nResult
My comment:
See also: GetCursorPos, GetTickCount
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2013-11-24 16:19:28
Modified: 2013-11-24 16:27:47
Visited in last 7 days: 65
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.166.199.178)
5 sec.Function: 'ImageList_Add'
17 sec.Function: 'WinHttpQueryDataAvailable'
Google
Advertise here!