 |
 |
 |
|
|  |  |
 |
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: |  | |
|
 |  | | 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: |  | |  |  | | • |  | | Created: | 2003-07-14 21:25:56 | | Modified: | 2007-06-11 16:26:31 | Visited in last 7 days: 27 |
|
 |
 |
 |
 |
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. |
 |
 |
|
 |
 |
|
|