0

If I this function:

void drawRect(int x1, int y1, int x2, int y2){
    HDC screenDC = ::GetDC(0);
    ::Rectangle(screenDC, x1, y1, x2, y2);
    ::ReleaseDC(0, screenDC);
}

How would I clear the screen of the white rectangles ?
Can I make them another color ? :)

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Ancient Dragon
0

Redraw them in the same color as the background. Or I suppose you could save a bitmap of the entire screen before you start drawing the rectangles and redraw the screen with that bipmap when you want to clear it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.