I couldn't figure out where to put the code for intitializing DirectDraw, the device, the buffers, viewport, etc. in my MDI application. I need both DirectDraw and Direct3D. Should I put the initialization of DirectDraw in the MainFrame class, or the View's OnInitialUpdate? I know that I will need to handle OnSize and I think that's where I would need to create my primary, secondary buffers, and adjust the viewport. However, I'm not sure if I'm doing it right and where exactly to put everything. If someone could point me in the right direction, I would appreciate it a lot!