How initialize an open gl window in visual c++6

I,

I 'd like to know how can I initialize my open gl windows in a visual c++ program ?

frog,

Win 32 API or MFC?

i wanna know it too.
how can i do it in win32

  1. register a window class ( RegisterClass )
  2. Create a window with CreateWindow
  3. Get its device context( GetDC )
  4. Set up a proper pixelformat that supports OpenGL (Look into SetPixelFormat, ChoosePixelFormat ).
  5. create an opengl context ( wglCreateContext I think that is )
  6. make opengl context current for rendering ( wglMakeCurrent ).

The online help is quite good in vc6, so look into it to get further information on the mentioned api calls. There are quite good tutorials on the web to.
For example:

http://nehe.gamedev.net