How to monitor screen updates?

Posted by user299600 on Stack Overflow See other posts from Stack Overflow or by user299600
Published on 2010-03-23T05:05:22Z Indexed on 2010/03/23 5:11 UTC
Read the original article Hit count: 367

Filed under:
|
|

I am trying to write a program that monitors when the screen has been redrawn. Meaning if any part of any window is redrawn, then the program is notified.

As far as I understand I should use a journal record hook like at http://www.vbaccelerator.com/home/vb/code/libraries/Hooks/Journal_Record_Hooks/article.asp

However, I do not understand which MSG type would get me the WM_PAINT events (WH_CALLWNDPROC and WH_CALLWNDPROCRET do not seem to do the job). I'm not even sure that WM_PAINT is what I'm looking for...

Basically, if I knew when the DC associated with GetDesktopWindow() has changed then my problem would be solved.

Question is: How do you monitor screen updates?

© Stack Overflow or respective owner

Related posts about journal

Related posts about record