For example I need to disable two buttons in runtime. After I disabled first button it bacame gray, the second – it also became gray. But I do not know how to make the repainting simultaneous!
I need something like that:
- freeze the Form (disable repainting)
- disable first button
- disable second button
- Enable Form repainting
How to implement that?
Look at the Win32 API
WM_SETREDRAWmessage. For example: