   Window displays in DDraw after a few seconds
  I''m working on the framework for a DirectX game (DirectDraw, not Direct3D).  My computer crashed this morning, but for the last few days, I''ve been making some headway on my game engine.  Only here''s a problem I''m having.  The screen clears like it should and displays some pixels, etc every loop...  I''m using one back buffer and page flipping.  As far as I know, I''ve checked the return values and everything''s okay.  But after a few seconds, my window pops back up in the background behind the application, title bar and all.  I found that if I clear the back buffer each frame, it doesn''t stay in the background, so it must be a one-time appearance of the main window, but still it pops up for that one loop.  Has anyone experienced this before?  Why would the window pop up behind the DDraw buffer/screen when it''s Exclusive Mode anyway?  Thanks.   [JESUS SAVES] 
  Is your HWND set to be toplevel?   I like pie. 