To answer your question directly: unfortunately, you can't.
FYI: RECT is not a GDI object, it's just a structure. HRGN is a GDI object, like pens and brushes.. In addition, a region can be more than a rectangle - it can be elliptical, a polygon and even combined with other regions with logical operators such as RGN_OR, RGN_AND, etc., to form a COMPLEXREGION.
Edited by Buckeye, 04 September 2014 - 01:09 PM.
Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly.
You don't forget how to play when you grow old; you grow old when you forget how to play.