gdi32: Replace some macros by inline functions in the region code.