Starting the Drag Operation

Once initialization is complete, the source object calls DrgDrag to start the direct manipulation operation. The following sample code shows how to start the drag operation:

/***********************************************************************/
/*  Start drag operation.                                              */
/***********************************************************************/
  DrgDrag(hFrameWnd,
          pSourceDraginfo,
          &dimg,
          1L,
          VK_BUTTON2,
          NULL);


[Back: Initializing DRAGIMAGE Data Structure]
[Next: Responding to the DM_DRAGOVER Message]