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?

[disregard]
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!)

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.