Use the source, Luke ... :-D From afxwin1.inl (VC6):
_AFXWIN_INLINE int CRect::Width() const
{ return right - left; }
_AFXWIN_INLINE int CRect::Height() const
{ return bottom - top; }
These function can't fail, unless MSDN means returning negative value by failure. Tomasz Sowinski -- http://www.shooltz.com
- It's for protection
- Protection from what? Zee Germans?