Using Win32 functions in Visual FoxPro Image Gallery
Coordinate Space and Transformation
..msdn
ClientToScreen
DPtoLP
GetGraphicsMode
GetMapMode
GetWorldTransform
LPtoDP
ScreenToClient
SetGraphicsMode
SetMapMode
Code examples:
Form Magnifier
ScreenToClient
..msdn    Add comment     W32 Constants      Translate this page
The ScreenToClient function converts the screen coordinates of a specified point on the screen to client-area coordinates.
Code examples:
Form Magnifier
Declaration:
BOOL ScreenToClient(
    HWND hWnd,        // handle to window
    LPPOINT lpPoint   // screen coordinates
);
FoxPro declaration:
DECLARE INTEGER ScreenToClient IN user32;
    INTEGER   hWnd,;
    STRING  @ lpPoint
Parameters:
hWnd
[in] Handle to the window whose client area will be used for the conversion.

lpPoint
[in] Pointer to a POINT structure that specifies the screen coordinates to be converted.
Return value:
If the function succeeds, the return value is nonzero.
Usage:
cBuffer = REPLICATE(Chr(0), 8)
= GetCursorPos(@cBuffer)
= ScreenToClient(THIS.hForm, @cBuffer)

nX = buf2dword(SUBSTR(cBuffer, 1,4))
nY = buf2dword(SUBSTR(cBuffer, 5,4))
My comment:
See also: ClientToScreen
Word Index links for the ScreenToClient :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-07-14 21:25:56
Modified: 2007-06-11 16:26:31
Visited in last 7 days: 29
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.91.38.173)
10 sec.Function: 'GetComputerName'
19 sec.Function: 'MAPISendMail'
29 sec.Function: 'GetVolumeInformation'
39 sec.Function: 'HeapCompact'
48 sec.Function: 'JetRetrieveColumn'
57 sec.Function: 'InternetAutodial'
1.13 min.Function: 'AVIStreamGetFrame'
1.3 min.
Function group: 'Window Class'
1.48 min.Function: 'TaskDialog'
1.67 min.Function: 'AVIFileRelease'
Google
Advertise here!