reversing unnecessary changes to windowproc, and add translatemessage