Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Gelmir

Direct3D & doc/view MFC

This topic is 6110 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi to all. I''m traying to integrate Direct3d 8 with the doc/view arquitecture. To doing this i have derived a subclass from CView, so all the DirectX initialization is in the OnCreate method. My problem is when create the device with the method CreateDevice. It returns a driver internal error (not documented in the SDK). I found that the problem is with the style used to create the view window. The only way it works is with the WM_POPUPWINDOW style, but this style creatres a border around the view that allow to resize de view (only the view, not the main frame). If I make the windows style not to make a resize border (with cs.style &= ~WM_THICKFRAM), the call to CreateDevice returns the error above. ¿Anyone know what window styles are supported by DirectX 8 or where I can found information about integrating DirectX with MFC? Tanx! "If you''''re gonna die, die with your boots on"

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!