WindowDCHook - Syntax

This hook is called when a device context is allocated or freed.

#define INCL_WINHOOKS /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HAB     hab;          /*  The application anchor block. */
HDC     hdc;          /*  The current device-context handle. */
HWND    hwnd;         /*  The current window handle. */
BOOL    flAssociate;  /*  Association flag. */
BOOL    rc;           /*  Success indicator. */

rc = WindowDCHook(hab, hdc, hwnd, flAssociate);


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