Udostępnij za pośrednictwem


CRect::MoveToY

Call this function to move the rectangle to the absolute y-coordinate specified by y.

void MoveToY( 
   int y  
) throw( );

Parameters

  • y
    The absolute y-coordinate for the upper-left corner of the rectangle.

Example

CRect rect(0, 0, 100, 100);

rect.MoveToY(10);

// rect is now (0, 10, 100, 110);
ASSERT(rect == CRect(0, 10, 100, 110));   

Requirements

Header: atltypes.h

See Also

Reference

CRect Class

Hierarchy Chart

CRect::MoveToXY

CRect::MoveToX

Other Resources

CRect Members