DrgGetPS - Example Code

This example uses the DrgGetPS function to get a presentation space handle which is used during drag operations such as loading a drag bit map. When finished with the presentation space, release it with the DrgReleasePS function.

#define INCL_WINSTDDRAG /* Direct Manipulation (Drag) Functions */
#include <os2.h>

HPS   hps;              /* Presentation space handle            */
HWND  hwnd;             /* Handle of the window for which       */
                        /* presentation space is required       */

case DM_DRAGOVER:
    hps = DrgGetPS(hwnd);

DrawTargetEmphasis(hps, hwnd);
DrgReleasePS(hps);


[Back: DrgGetPS - Related Functions]
[Next: DrgGetPS - Topics]