Not displaying properly

Started by
0 comments, last by hello_there 20 years, 3 months ago
I have a class that creates a opengl window it has a variable HWND hwnd; Then in WndProc the first parameter is HWND hwnd then i do this to get the device context and rendering context.HDC and HRC are members of the window class. HDC = GetDC(hwnd); SetupPixelFormat(); HRC = wglCreateContext(HDC); wglMakeCurrent(HDC,HRC); I was wondering would that get the device context for the right window. I''m asking because i have my windows setup code working and it enter the mainloop but the screen doesn''t go black you can just see the desktop. I think everything else is fine. Can someone help if they understand that.
____________________________________________________________How could hell be worse?
Advertisement
oh crap i know what i''ve done. I declared two Cwindow objects. opps
____________________________________________________________How could hell be worse?

This topic is closed to new replies.

Advertisement