Interception of the WM_PAINT message and action on it

I am trying to intercept / intercept the WM_PAINT message of a desktop in C ++. I am currently drawing a desktop descriptor, my only problem is that I am not in sync so that it can flicker.

Basically, I would like to write an instruction where I can check the WM_PAINT UINT message. When so, I want to do something else.

I'm going to ask him in a lazy way, does anyone have this in a small piece of code? Getting the handle to the desktop is done using GetDesktopWindow (); from this I also want to check WM_PAINT.

+3
source share
1 answer

SetWindowHookEx (.: SetWindowsHookEx #)

+4

Source: https://habr.com/ru/post/1754289/


All Articles