Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#38 Move for Drag&Drop

open
nobody
None
5
2012-12-07
2005-10-25
ocedhrt
No

Wouldn't a move be preferred in all cases when doing
drag and drop? I can't think of a case where copy would
be useful.

297,301d296
< bool moveIsAllowed = isFSFolder;
<
< DWORD effectsOK = DROPEFFECT_COPY;
< if (moveIsAllowed)
< effectsOK |= DROPEFFECT_MOVE;
304c299
< HRESULT res = DoDragDrop(dataObject,
dropSource, effectsOK, &effect);
---
> HRESULT res = DoDragDrop(dataObject,
dropSource, DROPEFFECT_MOVE, &effect);

Discussion

  • ocedhrt
    ocedhrt
    2005-10-25

    Modified

     
    Attachments