Converts the client coordinates of a point to window coordinates.
Syntax
HRESULT ClientToWindow( int* pcx, int* pcy );
Parameters
- pcx
- X-coordinate of the point to convert, in client coordinates. When ClientToWindow returns, this variable contains the x-coordinate of the point in window coordinates.
- pcy
- Y-coordinate of the point to convert, in client coordinates. When ClientToWindow returns, this variable contains the y-coordinate of the point in window coordinates.
Return Value
Returns S_OK to indicate that the operation was successful.
Remarks
Client coordinates are relative to the upper-left corner of the client area, and window coordinates are relative to the upper-left corner of a window.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0