HiI need some help with DirectX. I?m trying to create a MDI application, whose MDI-Childs uses the DX engine to draw to their clientrects. My first thought was to create a IDirect3DDevice9 for each child window, but I rapidly saw that I could open only a few of them until the DX engine has got out of memory.

Has somebody tried to do something similar? Basically I?m looking for an approach to draw into different windows with DX.

My two engines, "ilix" and "iDraw" do that. iDraw being specialized in MDI, while Ilix can handle fullscreen games too. I've found DirectDraw is the only usable acceleration for MDI. I'll send you the latest build of iDraw I forgot - it uses my own libraries, macros, and ATC2, so you'll have to modify the src code