 |
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: |
 |
|
 |
 |
| • |
 |
| Created: | 2007-04-27 11:55:13 | | Modified: | 2007-06-11 16:28:55 | Visited in last 7 days: 13 |