CRgn::CreateRectRgn not working
Posted on 2003-12-01
I have a subclassed CRgn and I do the following in the contructor.CRect* bounds is a parameter
and it has x, y, width, height with values like 100, 100, 200, 300.
int result = GetRgnBox(theBounds);
now theBounds has values 0, 0, 0, 0 and result == NULLREGION. I get the same result if I use CreateRectRgn or SetRectRgn, and if I do it outside the constructor. Why isn't the setting of the rect taking?