Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Calculates the width of CRect by subtracting the left value from the right value.
int Width( ) const throw( );
Return Value
The width of CRect.
Remarks
The width can be negative.
Hinweis
The rectangle must be normalized or this function may fail. You can call NormalizeRect to normalize the rectangle before calling this function.
Example
CRect rect(20, 30, 80, 70);
int nWid = rect.Width();
// nWid is now 60
ASSERT(nWid == 60);
Requirements
Header: atltypes.h