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: 13
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (23.22.76.170)
2.53 hrs.Function: 'GetACP'
Function group: 'National Language Support'
 Example: 'Opening access to the Microsoft Internet functions for the application'
2.88 hrs.Example: 'Retrieving local computer and user names'
 Example: 'Storing screen shot of a form to enhanced metafile (*.emf)'
11.97 hrs.Example: 'How to display a user-defined icon in the MessageBox dialog'
11.98 hrs.Example: 'Deleting a file stored on the FTP server'
12.9 hrs.Example: 'GDI+: Scrolling through large image using the mouse'
13.59 hrs.Example: 'Obtaining provider name for a specific type of network'
13.6 hrs.Example: 'Enumerating network resources'
 Example: 'Configuring DEVMODE structure for a printer'
Google
Advertise here!