CRect::NormalizeRect

Call this member function to normalize a CRect object so both the height and width are positive. The function does a comparison of the top and bottom values, swapping them if the bottom is greater than the top. The same action is performed on the left and right values. This function is useful when dealing with different mapping modes and inverted rectangles.

Syntax

void NormalizeRect( );

At a Glance

Header file: Afxwin.h
Platforms:
Versions: 1.0 and later
Complete documentation: Visual C++ documentation

See Also

CRect Overview, CRect Member Functions, Simple Value Types