getting the device context handle

I want to write a small app. For this reason I want to use glut and not win32. Is there a way to get the HDC (handle to device context)? I need it to use some text rendering functions I have from my win32 project. Thanks in advance!

For the HDC in a GLUT program I’d use wglGetCurrentDC(). :rolleyes:
But you can use any Win32 API call you want.

Thanks for the quicky :slight_smile:
I don’t know if that’s the function I had on my mind when I was searching msdn, but trying to find a win32 function in the likes of GetHDC was fruitless. They have a GetHWND though. Go figure.