Advertisement Jump to content


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


Rendering a scene onto a dialog

This topic is 5359 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
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. = CS_PARENTDC| CS_OWNDC;

thats the WNDCLASS style
and for the CreateWindowEx styles

dwExStyle=0; // Window Extended Style

and that should work for you.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!