Jump to content
  • Advertisement

Archived

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

Floating

Rendering a scene onto a dialog

This topic is 5295 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, How can I render a scene onto a dialog I created with MSVC++? For instance I want my dialog to have some buttons on the left side and on the right side a zone where an openGL scene is displayed. Up until now I always created dynamic windows where the whole surface was used for rendering. I am kind of lost how to start now... Thanks

Share this post


Link to post
Share on other sites
Advertisement
create the gl window as a child of the dialog. its faily simple to do you just need to change a few of the WS flags iirc.

wc.style = CS_PARENTDC| CS_OWNDC;

thats the WNDCLASS style
and for the CreateWindowEx styles

dwExStyle=0; // Window Extended Style
dwStyle=WS_CHILD|WS_VISIBLE;

and that should work for you.

Share this post


Link to post
Share on other sites

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