3

I'm trying to intercept/hook the WM_PAINT message of the desktop in C++. I'm currently drawing with the desktop handle, my only problem is that I'm not in sync so it might flicker.

What I basically would like is a statement where I can check on the WM_PAINT of UINT message. When this is the case, I want to do something else.

I'm going to ask it the lazy way, does anyone have this laying around in a small piece of code? Obtaining the desktop handle is done with GetDesktopWindow(); from this I want too check for WM_PAINT.

Yonathan
  • 1,253
  • 1
  • 17
  • 29

1 Answers1

4

I'd check SetWindowHookEx (see: SetWindowsHookEx in C# )

Community
  • 1
  • 1