VirtualBox

Changeset 74411 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Sep 21, 2018 3:36:16 PM (6 years ago)
Author:
vboxsync
Message:

DnD: Renamed action names, added typedefs for DnD actions.

Location:
trunk/src/VBox/Additions/WINNT/VBoxTray
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp

    r74380 r74411  
    9494      mEventSem(NIL_RTSEMEVENT),
    9595      hWnd(NULL),
    96       uAllActions(DND_IGNORE_ACTION),
     96      uAllActions(VBOX_DND_ACTION_IGNORE),
    9797      mfMouseButtonDown(false),
    9898#ifdef VBOX_WITH_DRAG_AND_DROP_GH
     
    878878        if (uAllActions)
    879879        {
    880             if (uAllActions & DND_COPY_ACTION)
     880            if (uAllActions & VBOX_DND_ACTION_COPY)
    881881                startupInfo.dwOKEffects |= DROPEFFECT_COPY;
    882             if (uAllActions & DND_MOVE_ACTION)
     882            if (uAllActions & VBOX_DND_ACTION_MOVE)
    883883                startupInfo.dwOKEffects |= DROPEFFECT_MOVE;
    884             if (uAllActions & DND_LINK_ACTION)
     884            if (uAllActions & VBOX_DND_ACTION_LINK)
    885885                startupInfo.dwOKEffects |= DROPEFFECT_LINK;
    886886        }
     
    925925    int rc;
    926926
    927     uint32_t uActionNotify = DND_IGNORE_ACTION;
     927    uint32_t uActionNotify = VBOX_DND_ACTION_IGNORE;
    928928    if (mMode == HG)
    929929    {
     
    11961196    if (RT_SUCCESS(rc))
    11971197    {
    1198         uint32_t uDefAction = DND_IGNORE_ACTION;
     1198        uint32_t uDefAction = VBOX_DND_ACTION_IGNORE;
    11991199
    12001200        AssertPtr(pDropTarget);
     
    12021202        if (!strFormats.isEmpty())
    12031203        {
    1204             uDefAction = DND_COPY_ACTION;
     1204            uDefAction = VBOX_DND_ACTION_COPY;
    12051205
    12061206            LogFlowFunc(("Acknowledging pDropTarget=0x%p, uDefAction=0x%x, uAllActions=0x%x, strFormats=%s\n",
     
    15501550
    15511551    this->lstFmtActive.clear();
    1552     this->uAllActions = DND_IGNORE_ACTION;
     1552    this->uAllActions = VBOX_DND_ACTION_IGNORE;
    15531553
    15541554    int rc2 = setMode(Unknown);
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnDDropSource.cpp

    r69500 r74411  
    3737      mpWndParent(pParent),
    3838      mdwCurEffect(0),
    39       muCurAction(DND_IGNORE_ACTION)
     39      muCurAction(VBOX_DND_ACTION_IGNORE)
    4040{
    4141    LogFlowFuncEnter();
     
    105105    {
    106106        mdwCurEffect = 0;
    107         muCurAction = DND_IGNORE_ACTION;
     107        muCurAction = VBOX_DND_ACTION_IGNORE;
    108108
    109109        LogFlowFunc(("Canceled\n"));
     
    130130STDMETHODIMP VBoxDnDDropSource::GiveFeedback(DWORD dwEffect)
    131131{
    132     uint32_t uAction = DND_IGNORE_ACTION;
     132    uint32_t uAction = VBOX_DND_ACTION_IGNORE;
    133133
    134134#if 1
     
    138138    {
    139139        if (dwEffect & DROPEFFECT_COPY)
    140             uAction |= DND_COPY_ACTION;
     140            uAction |= VBOX_DND_ACTION_COPY;
    141141        if (dwEffect & DROPEFFECT_MOVE)
    142             uAction |= DND_MOVE_ACTION;
     142            uAction |= VBOX_DND_ACTION_MOVE;
    143143        if (dwEffect & DROPEFFECT_LINK)
    144             uAction |= DND_LINK_ACTION;
     144            uAction |= VBOX_DND_ACTION_LINK;
    145145    }
    146146
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette