added processMessages function to Window class and to Win32WindowImpl