Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to call WM_SETREDRAW?

Tags:

c

winapi

When I send WM_SETREDRAW to disable redraw for a window, how do I "restore" the previous state when I'm done?

What's the proper way to send this message?

like image 760
user541686 Avatar asked Oct 31 '25 18:10

user541686


1 Answers

You can't restore the previous state, as there is no way to access the current state. There is no WM_GETREDRAW. Once you are done you send WM_SETREDRAW again with TRUE as an argument this time, and if anyone else had set redraw to FALSE on an outer scope then well.. that's bad for them..

like image 89
K-ballo Avatar answered Nov 03 '25 08:11

K-ballo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!