Refreshing and Redrawing the Desktop Window
Posted on 1997-07-17
Currently my application needs to draw directly over the entire desktop. In doing so, I obtain its device context by calling the CWindowDC constructor. After doing so, I am able to successfully paint directly to the desktop like I need to. However, when I finish, I need to restore the desktop to its original state (i.e. refresh it - exactly equivalent to what happens if you click on the desktop and press the F5 key). I have tried many ways of doing this, all without success. Any insight would be great. Thanks.