Revert changes to the painting code, the WM_CTLCOLORSTATIC message