DrgPushDraginfo - Example Code

This example calls the DrgPushDraginfo function to grant access to a DRAGINFO structure to the process owning the specified window handle. The DRAGINFO structure was previously allocated using the DrgAllocDraginfo function.

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

BOOL      fSuccess;     /* Indicate success or failure          */
DRAGINFO  Draginfo;     /* Pointer to DRAGINFO structure        */
HWND      hwndDest;     /* Handle of window whose process will  */
                        /* will be given access to the DRAGINFO */
                        /* structure                            */

fSuccess = DrgPushDraginfo(&Draginfo,hwndDest);


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