Jump to content
  • Advertisement
Sign in to follow this  
hannibal84

Combining DirectX with a standard Win32 application

This topic is 4869 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

Hello, I am trying to build a DirectX editing tool that will combine normal Win32 processing with DirectX. I want to have the normal Windows-type dialog panels and toolbars, but render the results in a DirectX viewport. For those familiar with 3ds Max, the concept would be the same form of layout. Does anyone know what steps are involved in this process? I've tried half a dozen ways already and I'm about to just scrap it all and make it a pure DirectX application. I also tried building it with MFC, but I am a bit unfamiliar with the MFC and could not figure out how to access the message pump/processing functions (and I still couldn't get a DirectX viewport up and running). Any suggestions or links to look into would be very appreciated.

Share this post


Link to post
Share on other sites
Advertisement
This is how my editor works:

Engine (C++)
Editor (C# Winforms)

I have a form with a control on it (picture box) and I pass the handle of the control to the engine when I create the Direct3D device. Doing it with an MFC application is even easier as you don't need to write a wrapper or anything.

The third param of device creation is the handle of where you want to render.

Share this post


Link to post
Share on other sites
Okay. I played around a bit with C# (which I am also not very familiar with), but with the help of a C# tutorial, I got it up and running. Adding in the picture box method you mentioned works great!

Thanks for the help.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!