CWindow::ScreenToClient

This method converts screen coordinates to client coordinates. The second of this method allows you to convert the coordinates of a RECT structure.

At a Glance

Header file: Atlwin.h
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

BOOL ScreenToClient( LPPOINT lpPoint ) const;

BOOL ScreenToClient( LPRECT lpRect ) const;

See Also

CWindow::ClientToScreen