lemming999
Programmer
Currently I'm trying to create Polygons that are not black which I assume is the default.
This is the code I have but I'm obviously I'm missing something to override the default brush for SetPolyFillMode
BuildingList::drawPolygon(HDC hdc, COLORREF colour)
{
HBRUSH hbrush;
hbrush = CreateSolidBrush(colour);
SetPolyFillMode(hdc, WINDING);
Polygon(hdc, coords,4);
DeleteObject(hbrush);
}
This is the code I have but I'm obviously I'm missing something to override the default brush for SetPolyFillMode
BuildingList::drawPolygon(HDC hdc, COLORREF colour)
{
HBRUSH hbrush;
hbrush = CreateSolidBrush(colour);
SetPolyFillMode(hdc, WINDING);
Polygon(hdc, coords,4);
DeleteObject(hbrush);
}