Sign in to follow this  
hacson

some question about OpenGL render context

Recommended Posts

hacson    100
I use GetDC() to get wglCreateContext()'s parameter HDC,when I use CreateWindow to get the window's handle in order to use GetDC(),I cannot make the right render context(application return no errors)
But when I transmit the CALLBACK function WindowProc()'s hWnd to GetDC() in the WM_CRATE message,my application is successed.
who can explain this to me?thx

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this