[generic] Generic implementation for WM_PAINT and WM_PRINTCLIENT.

All relevant controls now use these rather then their own implementation.