MFC and OpenGL?

Started by
1 comment, last by Old_Rod 21 years, 1 month ago
Looking for a good example of creating a tabbed dialog in one pane of a splitter window, with an OpenGL canvas in the other pane. Anyone know of a good example/tutorial for this?
Advertisement
quote:Original post by Old_Rod
Looking for a good example of creating a tabbed dialog in one pane of a splitter window, with an OpenGL canvas in the other pane. Anyone know of a good example/tutorial for this?


It''s actually not that hard. Both panes of the splitter each have their own DC right? Just pass the DC you receive to wglCreateContext and you''re golden.
The more "MFC way" to do it would be to derive a class from CWnd that uses an OpenGL context. Then you can use said class as a control much like any other common control. You can then create OpenGL controls willy nilly all over the screen ''til your heart''s content, without having to worry about the position constrictions on the SplitterWnd.
---K-1 Productions: Come visit us here.

This topic is closed to new replies.

Advertisement