I'm using the Rectangle, the CreateBrush and the CreatePen-functions to paint a red rectangle to a window's DC, let's say the notepad-window.

Question: How can I remove the rectangle?
I've tried the UpdateWindow-function. Even a
WM_PAINT-Message has no effect. A WM_ERASEBKGND-Message
would erase the window-background, but I want only the rectangle to disappear.

thx for your help,
Quix