CWnd::ScreenToClient

This method converts the screen coordinates of a specified point or rectangle on the display to client coordinates.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

void ScreenToClient( LPPOINT lpPoint ) const;

void ScreenToClient( LPRECT lpRect ) const;

See Also

CWnd::ClientToScreen