CFrameWnd::OnDestroy(); ::wglMakeCurrent(NULL, NULL); if (m_hrc) ::wglDeleteContext(m_hrc); if (m_pDC) delete m_pDC; // TODO: Add your message handler code here }
BOOL COpenGLWnd::OnEraseBkgnd(CDC* pDC) { // TODO: Add your message handler code here and/or call default return TRUE; //return CFrameWnd::OnEraseBkgnd(pDC); }
void COpenGLWnd::OnPaint() { CPaintDC dc(this); // device context for painting