Share via


CPoint

This class is similar to the Windows CE POINT structure. It also includes methods to manipulate CPoint and POINT structures.

A CPoint object can be used wherever a POINT structure is used. The operators of this class that interact with a size accept either CSize::CSize objects or SIZE structures, since the two are interchangeable.

This class is derived from the tagPOINT structure. (The name tagPOINT is a less commonly used name for the POINT structure.) This means that the data members of the POINT structure, x and y, are accessible data members of CPoint.

Shared Utility Classes

Beginning with Visual C++ 6.1, the simple utility classes (CRect, CSize, and CPoint) have been modified to be MFC-independent. This allows these utility classes to be used by ATL projects and projects that do not use the MFC library.

The include file for the MFC for Windows CE utility classes is Afxwin.h. There are no changes in using these classes, from previous versions of MFC for Windows CE. The include file for the utility classes in an ATL or MFC-independent project is Atltypes.h. This version allows you to use the utility classes without needing to link to the MFC DLL.

Requirements

**  Windows CE versions:** 1.0 and later  
  Header file: Declared in Afxwin.h
  Platform: H/PC Pro, Palm-size PC, Pocket PC

See Also

CRect, CSize, Simple Value Types