Centers a CRect over or within another CRect.
CRect * CenterCRectInCRect (CRect *dst, CRect *src)
Centers the destination rectangle (dst) over or within the source rectangle (src). If the destination rectangle is smaller than the source rectangle, its values are modified to center it within the source rectangle. If the destination rectangle is larger than the source rectangle, its values are modified to center it over the source rectangle. In either case, the resulting rectangle retains its original sizes; only the position changes.
Returns dst.
Library call implemented in lib3do.lib.
lib3do.lib, celutils.h