This allows ControlRedrawLock to work under Mono on Linux, since SendMessage isn't available/wouldn't work on Linux. Based on a short exchange of messages, this patch makes the class work the same way for all systems.
AFAIK, SuspendLayout/ResumeLayout should just be calling SendMessage like the original implementation of ControlRedrawLock on Windows.
This allows ControlRedrawLock to work under Mono on Linux, since SendMessage isn't available/wouldn't work on Linux. Based on a short exchange of messages, this patch makes the class work the same way for all systems.
AFAIK, SuspendLayout/ResumeLayout should just be calling SendMessage like the original implementation of ControlRedrawLock on Windows.