CRect::Size
The cx and cy members of the return value contain the height and width of CRect.
CSize Size( ) const throw( );
Возвращаемое значение
A CSize object that contains the size of CRect.
Заметки
Either the height or width can be negative.
![]() |
---|
The rectangle must be normalized or this function may fail. You can call NormalizeRect to normalize the rectangle before calling this function. |
Пример
CRect rect(10, 10, 50, 50);
CSize sz = rect.Size();
ASSERT(sz.cx == 40 && sz.cy == 40);
Требования
Header: atltypes.h