tags:

views:

814

answers:

1

The system default polygon fill mode in current device context is ALTERNATE (as I've learned from the Petzold book on Windows programming) and this one is used in Polygon Win32 function unless you change the mode with SetPolyFillMode.

My question is: Does the GDI+ Graphics::FillPolygon (without the FillMode parameter in its signature) method also use the current device context fill mode or sets the well-known-default and then sets back the mode set before it was called?

Thanks!

+1  A: 

I don't know the answer off the top of my head, but you could try finding out by retrieving the fill mode before and after the call. If it's not different, it's either not been changed, or was changed then changed back.

Mark Ingram