- Messages
- 76
Is there a simple function to fill a rectangle? I've checked about everywhere and I'm not sure how to do this. FillRectangle is apparently a Visual C++ function, but my 2008 Studio Express doesn't seem to have it.
There is a PaintRgn which requires a HRGN handle. But I don't understand where it is going to get the region. It doesn't ask for the HDC as a parameter, so how do I fill in a rectangle in a gauge? I suppose I could just do a for loop drawing lines, but I'd hope there would be something more efficient.
And BTW is there some place/book that describes all the functions in WinGDI.h ?
There is a PaintRgn which requires a HRGN handle. But I don't understand where it is going to get the region. It doesn't ask for the HDC as a parameter, so how do I fill in a rectangle in a gauge? I suppose I could just do a for loop drawing lines, but I'd hope there would be something more efficient.
And BTW is there some place/book that describes all the functions in WinGDI.h ?

