Поделиться через


CPoint Class

Similar to the Windows POINT structure.

class CPoint : public tagPOINT

Заметки

It also includes member functions 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 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.

ПримечаниеПримечание.

For more information on shared utility classes (like CPoint), see Shared Classes.

Требования

Header: atltypes.h

См. также

Основные понятия

MDI Sample: Demonstrates MDI Without Using Doc/View Architecture

CPoint Members

Hierarchy Chart

CRect Class

CSize Class