CRect::SetRect

voidSetRect(intx1**,inty1,intx2,inty2);**

Parameters

x1

Specifies the x-coordinate of the upper-left corner.

y1

Specifies the y-coordinate of the upper-left corner.

x2

Specifies the x-coordinate of the lower-right corner.

y2

Specifies the y-coordinate of the lower-right corner.

Remarks

Sets the dimensions of CRect to the specified coordinates.

Example

CRect rect;
rect.SetRect(256, 256, 512, 512);

ASSERT(rect == CRect(256, 256, 512, 512));

CRect OverviewClass MembersHierarchy Chart

See Also   CRect::CRect, CRect::operator =, CRect::CopyRect, CRect::SetRectEmpty,