m_hgldc = ::GetDC(m_hWnd);
if(!SetPixelformat(m_hgldc)) // set pixel format
{
::MessageBox(::GetFocus(),“SetPixelformat Failed!”,“Error”,MB_OK);
exit(0);
}
When I try to OpenGL SwapBackBuffer the whole screen goes black, this code works with one window. But not MDI. Can someone help me, much thanks and God bless ya.