Share via


CPoint::operator ==

Checks for equality between two points.

BOOL operator ==( 
   POINT point  
) const throw( );

Parameters

  • point
    Contains a POINT structure or CPoint object.

Return Value

Nonzero if the points are equal; otherwise 0.

Example

CPoint ptFirst(256, 128);
CPoint ptTest(256, 128);

ASSERT(ptFirst == ptTest);

// works with POINTs, too

POINT pt;
pt.x = 256;
pt.y = 128;

ASSERT(ptTest == pt);

// note that pt == ptTest isn't correct!   

Requirements

Header: atltypes.h

See Also

Reference

CPoint Class

Hierarchy Chart

CPoint::operator !=