   windows dialog and directx
  I''ve been using a standard open dialog box in the startup screen of a game I''m working on (passing a device context back to windows from directx, so windows can draw it etc.).Most of the time it seems to work fine. But sometimes windows doesn''t seem to get control of the device context. The screen is black, but the cursor still changes when over appropriate areas of the screen. You can get back to the main screen by clicking on where cancel should be, but you can''t SEE the cancel button.Tried various bits of ad hoc error checking (not really up on my error checking generally) and DirectX help but no answers. Anybody have any idea what''s going on?    The Hopping Quokka moves on . . .and where it goes, nobody knows . . .  
  i know exactly what ure problem is....use one of the Windowstyle flags on the parent, that is something like WS_CLIPCHILDREN i think...... it is painting over ure child controls with the parents brush  