ClientToScreen

Syntax

void ClientToScreen(hWnd,lpPoint)

This function converts the client coordinates of a given point on the display to screen coordinates. The ClientToScreen function uses the client coordinates in the POINT data structure, pointed to by the lpPoint parameter, to compute new screen coordinates; it then replaces the coordinates in the structure with the new coordinates. The new screen coordinates are relative to the upper-left corner of the system display.

Parameter Type/Description  

hWnd HWND Identifies the window whose client area will be used for the conversion.  
lpPoint LPPOINT Points to a POINT data structure that contains the client coordinates to be converted.  

Return Value

None.

Comments

The ClientToScreen function assumes that the given point is in client coordinates and is relative to the given window.