Init OpenGl on Windows: shouldwe keep the window until the end of the app?


I want to port an OpenGL library (version3.3) to Windows. So I looked at th the Khronos wiki

The steps are:

  1. create the window
  2. get its DC
  3. retrieve the OpenGL rendering context

My question is: may I destroy the window and its dc just after the retrieval of the rendering context, or else must I keep it until the end of the application ?

thank you