OpenGL.WGL.SetPixelFormat Function
Sets the pixel format for the device context to the format specified by the index

Public uint SetPixelFormat (uint, int, OpenGL.WGL.PIXELFORMATDESCRIPTOR)
  Type Name Description  
    uint hdc Device Context  
    int iPixelFormat Index to a pixel format returned ChoosePixelFormat  
    PIXELFORMATDESCRIPTOR p_pfd Pixel Format Descriptor  
  Return Description  
    uint