DemoGL::Reference::Functions::DEMOGL_GetWindowSpecificHandles

DEMOGL_GetWindowSpecificHandles

DEMOGL_GetWindowSpecificHandles gets the window handle (HWND) and the Device Context (HDC) handle of the window created by DemoGL which will display the application's content.

void
DEMOGL_GetWindowSpecificHandles(
	HWND * const hWndMainWindow,
	HDC * const hDCMainWindow
);
	
Parameters.
hWndMainWindow
Pointer to a HWND variable which will be filled by DemoGL with the hWnd handle of the window created by DemoGL.
hDCMainWindow
Pointer to a HDC variable which will be filled by DemoGL with the hDC handle of the window created by DemoGL.

Return values.

Remarks.
Use this routine to retrieve crucial information about the window and it's current device context to use the wgl* font routines properly. If you call this routine from an Init() method of an effect object, be aware that you can't use OpenGL related functions in Init() methods, thus you can't generate the display lists for font drawing, using wgl* routines inside the Init() method of any effect object.

Example.

Requirements.
DemoGL v1.31 (build 0528 or higher)

See also.

Last changed on 28-may-2001

©1999-2001 Solutions Design