Avoid calling the *Rect USER functions from inside GDI. Moved a few USER functions to a more appropriate location.