qavorqa
July 7th, 2002, 09:32 PM
I am working in open gl, in windows, using XVT for GUIs. I am, and can not, due to constraints, use MFC. I am using the command GetWindowsDC () to get the HDC in order to render openGL onto that window. It works fine in Windows ME, 98 and its brethren, but in case of Win 2000 and XP what happens is the entire rendered image is shifted onto the window title bar. I have tried using GetDC () to get the device context, which supposedly should get me the device context for the client area of the window, but then the function wglCreateContext () does not work for some reason. Please advise.
Akash
Akash