DirectX in an MDI application

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!
Who is Participating?
inprasConnect With a Mentor Commented:
this may help U
prokewlAuthor Commented:
Thanks Inpras,

But the examples there don't show anything about doing it as an MDI application in a windowed normal cooperative level mode.  The examples there are SDI in full screen.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.