Currently viewing: GipsySoft » Front Page» Articles

NormalizeRect

Adjusts the coordinates in a rectagle so they form a "normal" rectangle.

void NormalizeRect( RECT &rc );

Return value

none

Example

RECT rc = { 30, 30, 1, 1 };
NormalizeRect( rc );
//	Now the coordinates have n=been adjusted to make a normal rectangle
//	of (1, 1, 30, 30)

 

Click to view the source code

See also none