CWnd::ScreenToClient
Visual Studio 2010
Converts the screen coordinates of a given point or rectangle on the display to client coordinates.
void ScreenToClient( LPPOINT lpPoint ) const; void ScreenToClient( LPRECT lpRect ) const;
See the example for CListCtrl::GetItemRect.