I'm trying to draw a "selection box" with a Graphics created with an HDC to the PrimaryScreen, but it doesn't appear to update properly, as in when I draw something it tends to stay there. Am I doing something wrong, or is there something I'm not aware of?

Actually it also appears this is not what I was wanting at all, it doesn't appear on top of the content area of open programs. Any suggestions?[/disregard]

Woops, sorry actually it does appear, my text color is white and so is the window. (doh!)

Edited by pseudorandom21: n/a

6 Years
Discussion Span
Last Post by pseudorandom21

Problem is solved, by invalidating a rectangle of the screen it clears it. WinApi func is InvalidateRect.

This question has already been answered. 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.