共用方式為


CPoint::operator !=

Checks for inequality 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 not equal; otherwise 0.

Example

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

ASSERT(ptFirst != ptTest);

// works with POINTs, too

POINT pt;
pt.x = 333;
pt.y = 111;

ASSERT(ptTest != pt);

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

Requirements

Header: atltypes.h

See Also

Concepts

CPoint Class

CPoint Members

Hierarchy Chart

CPoint::operator ==