In this example the presentation space handle is retrieved, a bit map is loaded, and the presentation space is released with the DrgReleasePS function.
#define INCL_WINSTDDRAG /* Direct Manipulation (Drag) Functions */ #include <os2.h> #define ID_BITMAP 255 HPS hps; HWND hwnd; case DM_DRAGOVER: hps = DrgGetPS(hwnd); DrawTargetEmphasis(hps, hwnd); DrgReleasePS(hps);