   Ppl! I need super help!! I tried a lot but without succes!..please..
  I have a project and which conains an MFC form which all is an OpenGL window! what I need that to create a child window(rect) in this main GL form which will be not an OpenGL window..This is for my school project and it is very very important..if there ppl here who dont have a problem to help me and have some free time for that so please check my project:http://planet.nana.co.il/pctip/dbox2.zipif u dont understand something in my "request" I will be glad to explain propertly!thank you very much!!!I realy need your help. 
  When you create your new child window I believe you want to specify the style CS_OWNDC, so that drawing to the parent window does not draw over your new child window.J.W.;  I didnt understand what had u mean..\:I thought about separate the main window to 2 parts (areas)in the first area the Glscene will be drawn and in the second area will be independent of OpenGLthe only question how to do it (: ? ;  Have you done NeHe''s lesson 1 for creating a window from just a Win32 application?If so, if you understand that, the only difference between how you do it there and how you do it in MFC is where the DC comes from.Look in NeHe''s code for wglCreateContext - one of the parameters is DC.  If you want to use the whole dialog as the DC, just use the dialog''s GetDC() method, if you want to use a control, you can use the GetDlgItem(IDC_MY_ID)->GetDC() method.I have several MFC samples on my site.Hope this helps   Love means nothing to a tennis playerMy nothing-to-write-home-about OpenGL webpage. (please pardon the popups!);  I re-read your comment and I believe the second approach is what you want.  Draw a big picturebox covering the right half of the dialog, give it an IDC_WHATEVER ID, use GetDlgItem(that ID)->GetDC() to get its DC, and everything else is just like NeHe''s lesson 1.   Love means nothing to a tennis playerMy nothing-to-write-home-about OpenGL webpage. (please pardon the popups!);  mmm I am a very beginner and dont understand how to do it..can u plz give me a sample code this? u said u have some on your site... I will be glad to see it and understand it.thnx ;  Just click the link where it says "my nothing-to-write-home-about OpenGL page".I don''t mean to be rude, but in order to write an MFC/OpenGL program, you first have to understand a LITTLE MFC, and a LITTLE OpenGL.  If you don''t even know how to draw a picturebox on a form in Visual C++, you''re in big trouble.  If you don''t even know that you need to pass a DC to wglCreateContext() you''re in trouble.  If this is for school, you might want to talk to your teacher.Again, not trying to be an elitist or anything like that, just saying that you really need to brush up on the basics.   Love means nothing to a tennis playerMy nothing-to-write-home-about OpenGL webpage. (please pardon the popups!);  Check out this page: http://www.microsoft.com/msj/archive/s2085a.htmEDIT: original page: 'OpenGL Without the Pain Creating a Reusable 3D View Class for MFC' [edited by - Tree Penguin on February 18, 2004 4:43:17 PM];  Thnx, yoy have great examples out of there!I wanted to ask if maybe you have a sample of a such a dialog (with openGL in a picture box) without other program?I mean a plain dialog without anything... cause I tried to delete all the extra code from: ProjectAndUnprojectDemo and I got in troubles..I will be very glad if you send me such a sample.. (but not this which in codeguru.com cause I got messed with the view points there..)thnx a lot! ;  I don''t have an example like that, but you should be able to figure it out pretty easily by comparing NeHe''s Tutorial 1 to the MFC code.  Just look for his code in my code and think about when things happen in Win32 vs. when they happen in MFC, i.e. Win32 has one giant messageloop whereas MFC has things like OnResize(), PreTranslateMessage(), OnPaint(), OnDraw() yada yada yada.The articles TreePenguin posted are pretty cool too.Good luck!   Love means nothing to a tennis playerMy nothing-to-write-home-about OpenGL webpage. (please pardon the popups!)