You have to go through creating a Window through the Windows class, and connect the rendering context to the device context, and all sorts of other goodies to set up a Win32 window that will support OpenGL.

It's a lot of stuff to learn, but usually, people don't go through the bother of writing out the code themselves....copying and pasting all the code (as long as you understand most of it) is usually what's done.