void wglMakeCurrent( void );


The wglMakeCurrent method function sets the current threadís OpenGL rendering context to the COpenGL objectís OpenGL rendering context. Call this function to ensure that OpenGL functions you call are associated with the COpenGL objectís rendering context you want to use.

The method function is a wrapper around the Win32 API wglMakeCurrent function.

See Also

OnCreate, DrawBegin