This subroutine queries the HPS and HBITMAP which contain the bitmap representation of the front buffer of the current OpenGL window. While the bitmap is locked, the application will NOT receive WM_SIZE or WM_ADJUSTPOSITION messages in the current OpenGL hwnd, and the current window will NOT be sizeable. An implicit glFlush() occurs before this call completes. Applications must call pglReleaseFrontBitmap when they are done with the HBITMAP. The HBITMAP is only valid between pglGrabFrontBitmap and pglReleaseFrontBitmap, the HPS will be valid until the current window is unbound by calling pglMakeCurrent.

#include <pgl.h>

HAB          hab;
HPS         *phps;
HBITMAP     *phbitmap;
BOOL         rc;

rc = pglGrapFrontBitmap(hab, phps, phbitmap);


[Back: pglGrapFrontBitmap]
[Next: pglGrapFrontBitmap Parameter - hab]