As part of the preparation for the actual drag, an application intializes a DRAGIMAGE data structure. The following sample code shows how to initialize the DRAGIMAGE data structure:
/***********************************************************************/ /* Initialize the drag image. */ /***********************************************************************/ dimg.cb = sizeof (DRAGIMAGE); dimg.hImage = WinQuerySysPointer (HWND_DESKTOP, SPTR_FILE, FALSE); dimg.fl = DRG_ICON | DRG_TRANSPARENT; dimg.cxOffset = 0; dimg.cyOffset = 0;