revise program to make win32 windows message processing normally