// Get the bounding rectangle for an element CRect CElement::GetBoundRect() const { CRect BoundingRect = m_EnclosingRect; // Increase the rectangle by the pen width BoundingRect.InflateRect( m_Pen, m_Pen ); return BoundingRect; }