Just a short question:
Does anyone know of a way to get the parent window (HWND) of a device context (HDC)?
It should be like this Windows standard call but only backwards:
hDC = GetDC(hWnd);
I need this for my OpenGL port because GAPI needs a window as a paramter to init the drawing functions and not a device context but the standard Windows OpenGL implentation call wglMakeCurrent needs a device context as a parameter. (I want to make my port as close as possible to the original Windows implentation)
Does anyone know of a way to get the parent window (HWND) of a device context (HDC)?
It should be like this Windows standard call but only backwards:
hDC = GetDC(hWnd);
I need this for my OpenGL port because GAPI needs a window as a paramter to init the drawing functions and not a device context but the standard Windows OpenGL implentation call wglMakeCurrent needs a device context as a parameter. (I want to make my port as close as possible to the original Windows implentation)