CWnd::ScreenToClient

Call this member function to convert the screen coordinates of a given point or rectangle on the display to client coordinates.

Syntax

void ScreenToClient( LPPOINT lpPoint ) const;

void ScreenToClient( LPRECT lpRect ) const;

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CWnd Overview, CWnd Member Functions, Window Class Categories, CWnd::ClientToScreen