This topic is now archived and is closed to further replies.


Not displaying properly

Recommended Posts

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.

Share this post

Link to post
Share on other sites