1.create a wndclass
2.regist your wndclass and return a HWND
3.get a HDC from the HWND
4.set the pixelformat uesd by the HDC
5.get a HGLRC from the HDC
6.wglMakeCurrent(*HDC,*HGLRC)
opengl api use the HGLRC to communicate with the windows
MyHeader.h
GetHWND.c
En_DisOpengl.c
WndProc.c
Main.c