Quantcast
Channel: VBForums - API
Viewing all articles
Browse latest Browse all 168

[RESOLVED] What API call do I use to force a refresh of the whole screen?

$
0
0
When I do this using these API calls the TextOut, GetDesktopWindow, GetWindowDC, and ReleaseDC:
Code:

dim MyWnd as long
dim MyDC as long
MyWnd=getdesktopwindow
MyDC=getwindowdc(MyWnd)
TextOut MyDC,0,0,"test",4
releasedc MyWnd,MyDC

I find that the text is drawn to the upperleft corner of the computer monitor (regardless of what is normally displayed there). That is as expected. When I find though is that it remains there, until something (like another window) is dragged over it, forcing the OS to refresh those pixels and clear the text. However I would like to do this programatically. I want to know what API function I can call that forces the OS to refresh the whole screen, upon calling said API function. Is there such an API function?

Viewing all articles
Browse latest Browse all 168

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>