   WinProc not receiving events after resolution change
  Well, this is a strange bug. I have a d3d9 application that runs correctly only if the device is windowed (or fullscreen, but only in the current resolution of my desktop). It also runs correctly if I start in windowed mode and then reset the device to fullscreen in whatever resolution.What happens is, my WinProc is not getting called, even though my message loop (Peek/Translate/DispatchMessage) is running. I know that the WinProc is registered correctly because it is fed only one message in the beginning (WM_DISPLAYCHANGE), but then its never called again.Any ideas on how to debug this?Thank you   
  Need more input: What are you doing to the window to toggle between windowed/fullscreen window? Are you creating a new window or modifying the styles of the existing window?Are you using multiple threads? If you create a new window and happen to do that in another thread than the message loop lies in that's the exact problem you'd get.   ;  Everything runs in a single thread. The problem happenned only when creating the window (mode switching worked fine). I just fixed it by changing the display settings to the target fullscreen mode before CreateWindow is called. Strange. Previewsly I just created my window and relied on d3d to perform the mode switch. I'd swear that the same code worked well in my previews windows xp system (now I use win7).   