ClientToScreen
This function converts the client coordinates of a specified point to screen coordinates.
BOOL ClientToScreen(
HWND hWnd,
LPPOINT lpPoint
);
Parameters
- hWnd
Handle to the window whose client area is used for the conversion. - lpPoint
Long 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 Values
Nonzero indicates success. Zero indicates failure.
To get extended error information, call GetLastError.
Remarks
The ClientToScreen function replaces the client coordinates in the POINT structure with the screen coordinates. The screen coordinates are relative to the upper-left corner of the screen.
Requirements
| Runs on | Versions | Defined in | Include | Link to |
|---|---|---|---|---|
| Windows CE OS | 1.0 and later | Winuser.h | Coredll.lib, Winmgr.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
GetLastError, MapWindowPoints, ScreenToClient, POINT
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.