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

lpPoint
[in/out] Pointer to a POINT structure that contains the client coordinates to be converted. The new screen coordinates are copied into this structure if the function succeeds.
Return value:
If the function succeeds, the return value is nonzero.
Usage:
LOCAL hWindow, cBuffer
hWindow = _screen.HWnd

cBuffer = num2dword(0) + num2dword(0)
= ClientToScreen(hWindow, @cBuffer)

? buf2dword(SUBSTR(cBuffer,1,4)),;
    buf2dword(SUBSTR(cBuffer,5,4))

? _screen.Left, _screen.Top
My comment:
See also: ScreenToClient
Word Index links for the ClientToScreen :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2007-04-27 11:55:13
Modified: 2007-06-11 16:28:55
Visited in last 7 days: 5
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.162.154.91)
11 sec.Function: 'FtpGetFile'
24 sec.Function: 'DrawMenuBar'
35 sec.Function: 'GdiGetBatchLimit'
47 sec.Function: 'AVIStreamInfo'
1 min.Function: 'ChooseColor'
1.18 min.Function: 'BringWindowToTop'
1.4 min.Function: 'DllGetVersion'
1.6 min.Function: 'gethostname'
1.77 min.Function: 'CryptGetKeyParam'
1.95 min.Function: 'CeRegEnumValue'
Google
Advertise here!