COpenGL::wglMakeCurrent

void wglMakeCurrent( void );

Remarks

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