How to start ? Using MFC and OpenGL

Hi all,

If I want to build an application program which use the Microsoft Visual C++ as the GUI (MFC) how do I integrate it with my OpenGL program? How do I start it? any good references I can read on?

For example, let say I want to build something like adobe photoshop, all the GUI I want it to be build using Visual C++ (including all the buttons etc) but for the screen (the editable graphic in photoshop) I want to use OpenGL.

Hope anyone can help me on this or can suggest me any other better alternatives I have.

regards,
songeb

There are lot’s of good tutor sites for OpenGL out there and sites for writing Windows programs using the Windows API.

cornflakezone
nehe

If you are wanting to use the Windows API for your menu and ICON control. Then it is best you start learning how to create that part of your program. Once you understand how to setup a Windows GUI. Then you move to creating a OpenGL window in which to draw on.

The OpenGL window will be treated like a document, in your Windows API.

If you do not want to be stuck with a program that will only run on a windows based system. You may want to use GLUT for creating your window GUI, since GLUT is supported on Linux and Mac.

[This message has been edited by nexusone (edited 02-01-2002).]

[This message has been edited by nexusone (edited 02-01-2002).]

[This message has been edited by nexusone (edited 02-01-2002).]

[This message has been edited by nexusone (edited 02-01-2002).]

Try my MFC & OpenGL website

http://pws.prserv.net/mfcogl/

or
http://www.mfcogl.com/

I did this a while back, and J P’s website is the one I found most useful.

http://pws.prserv.net/mfcogl/

http://p-squared.com/Display3DS.zip

Ok thanks to all, I found the website very useful… I’ll try to look into deeper of it… thanks

regards,