开发者

Intercepting a WM_PAINT message and acting upon this

开发者 https://www.devze.com 2023-01-06 17:33 出处:网络
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.

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 GetD开发者_JS百科esktopWindow(); from this I want too check for WM_PAINT.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号