没用过OpenGL,但我查看了以下MSDN,发现它有段示例代码是这样写的
HDC    hdc; 
HGLRC  hglrc; 
 
// create a rendering context 
hglrc = wglCreateContext (hdc); 
 
// make it the calling thread's current rendering context
wglMakeCurrent (hdc, hglrc);
 
// call OpenGL APIs as desired ...
 
// when the rendering context is no longer needed ...  
 
// make the rendering context not current 
wglMakeCurrent (NULL, NULL) ; 
 
// delete the rendering context 
wglDeleteContext (hglrc);所以你可以试下将wglMakeCurrent(m_hDC, NULL);改为wglMakeCurrent(NULL, NULL);